use of sun.awt.image.OffScreenImage in project jdk8u_jdk by JetBrains.
the class Win32GraphicsConfig method createAcceleratedImage.
/**
* Creates a new managed image of the given width and height
* that is associated with the target Component.
*/
public Image createAcceleratedImage(Component target, int width, int height) {
ColorModel model = getColorModel(Transparency.OPAQUE);
WritableRaster wr = model.createCompatibleWritableRaster(width, height);
return new OffScreenImage(target, model, wr, model.isAlphaPremultiplied());
}
use of sun.awt.image.OffScreenImage in project jdk8u_jdk by JetBrains.
the class GLXGraphicsConfig method createAcceleratedImage.
/**
* Creates a new hidden-acceleration image of the given width and height
* that is associated with the target Component.
*/
@Override
public Image createAcceleratedImage(Component target, int width, int height) {
ColorModel model = getColorModel(Transparency.OPAQUE);
WritableRaster wr = model.createCompatibleWritableRaster(width, height);
return new OffScreenImage(target, model, wr, model.isAlphaPremultiplied());
}
use of sun.awt.image.OffScreenImage in project jdk8u_jdk by JetBrains.
the class X11GraphicsConfig method createAcceleratedImage.
/**
* Creates a new hidden-acceleration image of the given width and height
* that is associated with the target Component.
*/
public Image createAcceleratedImage(Component target, int width, int height) {
// As of 1.7 we no longer create pmoffscreens here...
ColorModel model = getColorModel(Transparency.OPAQUE);
WritableRaster wr = model.createCompatibleWritableRaster(width, height);
return new OffScreenImage(target, model, wr, model.isAlphaPremultiplied());
}
use of sun.awt.image.OffScreenImage in project jdk8u_jdk by JetBrains.
the class CGLGraphicsConfig method createAcceleratedImage.
@Override
public Image createAcceleratedImage(Component target, int width, int height) {
ColorModel model = getColorModel(Transparency.OPAQUE);
WritableRaster wr = model.createCompatibleWritableRaster(width, height);
return new OffScreenImage(target, model, wr, model.isAlphaPremultiplied());
}
Aggregations