Modifier and Type | Field and Description |
---|---|
protected Component | |
private Font | |
private OffScreenImageSource |
Access | Constructor and Description |
---|---|
public | OffScreenImage(Component c, ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied)
Constructs an OffScreenImage given a color model and tile, for offscreen rendering to be used with a given component. |
Modifier and Type | Method and Description |
---|---|
public Graphics2D | createGraphics()
Overrides java. Creates a |
public Graphics | getGraphics()
Overrides java. This method returns a |
public ImageProducer | getSource()
Overrides java. Returns the object that produces the pixels for the image. |
private void |
c | back to summary |
---|---|
protected Component c |
defaultFont | back to summary |
---|---|
private Font defaultFont |
osis | back to summary |
---|---|
private OffScreenImageSource osis |
OffScreenImage | back to summary |
---|---|
public OffScreenImage(Component c, ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied) Constructs an OffScreenImage given a color model and tile, for offscreen rendering to be used with a given component. The component is used to obtain the foreground color, background color and font. |
createGraphics | back to summary |
---|---|
public Graphics2D createGraphics() Overrides java. Doc from java. Creates a
|
getGraphics | back to summary |
---|---|
public Graphics getGraphics() Overrides java. Doc from java. This method returns a
|
getSource | back to summary |
---|---|
public ImageProducer getSource() Overrides java. Doc from java. Returns the object that produces the pixels for the image.
|
initSurface | back to summary |
---|---|
private void initSurface(int width, int height) |