本文整理汇总了Java中sun.java2d.loops.GraphicsPrimitiveMgr类的典型用法代码示例。如果您正苦于以下问题:Java GraphicsPrimitiveMgr类的具体用法?Java GraphicsPrimitiveMgr怎么用?Java GraphicsPrimitiveMgr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GraphicsPrimitiveMgr类属于sun.java2d.loops包,在下文中一共展示了GraphicsPrimitiveMgr类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
/**
* Note that we do not register loops to 8-byte destinations. This
* is due to faster processing of dithering through our software
* loops than through GDI StretchBlt processing.
*/
public static void register()
{
GraphicsPrimitive[] primitives = {
new GDIBlitLoops(SurfaceType.IntRgb,
GDIWindowSurfaceData.AnyGdi),
new GDIBlitLoops(SurfaceType.Ushort555Rgb,
GDIWindowSurfaceData.AnyGdi,
0x7C00, 0x03E0, 0x001F),
new GDIBlitLoops(SurfaceType.Ushort565Rgb,
GDIWindowSurfaceData.AnyGdi,
0xF800, 0x07E0, 0x001F),
new GDIBlitLoops(SurfaceType.ThreeByteBgr,
GDIWindowSurfaceData.AnyGdi),
new GDIBlitLoops(SurfaceType.ByteIndexedOpaque,
GDIWindowSurfaceData.AnyGdi,
true),
new GDIBlitLoops(SurfaceType.Index8Gray,
GDIWindowSurfaceData.AnyGdi,
true),
new GDIBlitLoops(SurfaceType.ByteGray,
GDIWindowSurfaceData.AnyGdi),
};
GraphicsPrimitiveMgr.register(primitives);
}
示例2: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
static void register() {
GraphicsPrimitive[] primitives = {
new OGLMaskFill(AnyColor, SrcOver),
new OGLMaskFill(OpaqueColor, SrcNoEa),
new OGLMaskFill(GradientPaint, SrcOver),
new OGLMaskFill(OpaqueGradientPaint, SrcNoEa),
new OGLMaskFill(LinearGradientPaint, SrcOver),
new OGLMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
new OGLMaskFill(RadialGradientPaint, SrcOver),
new OGLMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
new OGLMaskFill(TexturePaint, SrcOver),
new OGLMaskFill(OpaqueTexturePaint, SrcNoEa),
};
GraphicsPrimitiveMgr.register(primitives);
}
示例3: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
static void register() {
GraphicsPrimitive[] primitives = {
new OGLMaskBlit(IntArgb, SrcOver),
new OGLMaskBlit(IntArgbPre, SrcOver),
new OGLMaskBlit(IntRgb, SrcOver),
new OGLMaskBlit(IntRgb, SrcNoEa),
new OGLMaskBlit(IntBgr, SrcOver),
new OGLMaskBlit(IntBgr, SrcNoEa),
};
GraphicsPrimitiveMgr.register(primitives);
}
示例4: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
static void register() {
GraphicsPrimitive[] primitives = {
new D3DMaskFill(AnyColor, SrcOver),
new D3DMaskFill(OpaqueColor, SrcNoEa),
new D3DMaskFill(GradientPaint, SrcOver),
new D3DMaskFill(OpaqueGradientPaint, SrcNoEa),
new D3DMaskFill(LinearGradientPaint, SrcOver),
new D3DMaskFill(OpaqueLinearGradientPaint, SrcNoEa),
new D3DMaskFill(RadialGradientPaint, SrcOver),
new D3DMaskFill(OpaqueRadialGradientPaint, SrcNoEa),
new D3DMaskFill(TexturePaint, SrcOver),
new D3DMaskFill(OpaqueTexturePaint, SrcNoEa),
};
GraphicsPrimitiveMgr.register(primitives);
}
示例5: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
static void register() {
GraphicsPrimitive[] primitives = {
new D3DMaskBlit(IntArgb, SrcOver),
new D3DMaskBlit(IntArgbPre, SrcOver),
new D3DMaskBlit(IntRgb, SrcOver),
new D3DMaskBlit(IntRgb, SrcNoEa),
new D3DMaskBlit(IntBgr, SrcOver),
new D3DMaskBlit(IntBgr, SrcNoEa),
};
GraphicsPrimitiveMgr.register(primitives);
}
示例6: register
import sun.java2d.loops.GraphicsPrimitiveMgr; //导入依赖的package包/类
public static void register()
{
GraphicsPrimitive[] primitives = {
new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
X11SurfaceData.IntBgrX11),
new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
X11SurfaceData.IntRgbX11),
new X11PMBlitBgLoops(X11SurfaceData.ThreeByteBgrX11_BM,
X11SurfaceData.ThreeByteBgrX11),
new X11PMBlitBgLoops(X11SurfaceData.ThreeByteRgbX11_BM,
X11SurfaceData.ThreeByteRgbX11),
new X11PMBlitBgLoops(X11SurfaceData.ByteIndexedX11_BM,
X11SurfaceData.ByteIndexedOpaqueX11),
new X11PMBlitBgLoops(X11SurfaceData.ByteGrayX11_BM,
X11SurfaceData.ByteGrayX11),
new X11PMBlitBgLoops(X11SurfaceData.Index8GrayX11_BM,
X11SurfaceData.Index8GrayX11),
new X11PMBlitBgLoops(X11SurfaceData.UShort555RgbX11_BM,
X11SurfaceData.UShort555RgbX11),
new X11PMBlitBgLoops(X11SurfaceData.UShort565RgbX11_BM,
X11SurfaceData.UShort565RgbX11),
new X11PMBlitBgLoops(X11SurfaceData.UShortIndexedX11_BM,
X11SurfaceData.UShortIndexedX11),
new X11PMBlitBgLoops(X11SurfaceData.IntRgbX11_BM,
X11SurfaceData.IntArgbPreX11),
new X11PMBlitBgLoops(X11SurfaceData.IntBgrX11_BM,
X11SurfaceData.FourByteAbgrPreX11),
};
GraphicsPrimitiveMgr.register(primitives);
}