public class GraphicsConfigurationWithTransparency extends AbstractGraphicsConfiguration
GraphicsConfiguration that supports transparencies (alpha
channels).| Constructor and Description |
|---|
GraphicsConfigurationWithTransparency() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
createCompatibleImage(int width,
int height)
Construct a buffered image with an alpha channel.
|
BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
Construct a buffered image with an alpha channel, unless transparency is OPAQUE (no alpha
at all).
|
Rectangle |
getBounds()
TODO: This should return the page bounds in Pts, I couldn't figure out how to get this for
the current page (this still works for now, but it should be fixed...).
|
ColorModel |
getColorModel()
Return a good default color model for this 'device'.
|
ColorModel |
getColorModel(int transparency)
Return a good color model given
transparency |
AffineTransform |
getDefaultTransform()
The default transform (1:1).
|
GraphicsDevice |
getDevice()
Return our dummy instance of GraphicsDevice
|
AffineTransform |
getNormalizingTransform()
The normalizing transform (1:1) (since we currently
render images at 72dpi, which we might want to change
in the future).
|
createCompatibleVolatileImage, createCompatibleVolatileImagecreateCompatibleVolatileImage, createCompatibleVolatileImage, getBufferCapabilities, getImageCapabilities, isTranslucencyCapablepublic GraphicsConfigurationWithTransparency()
public BufferedImage createCompatibleImage(int width, int height, int transparency)
createCompatibleImage in class GraphicsConfigurationwidth - the width of the imageheight - the height of the imagetransparency - the alpha value of the imagepublic BufferedImage createCompatibleImage(int width, int height)
createCompatibleImage in class GraphicsConfigurationwidth - the width of the imageheight - the height of the imagepublic Rectangle getBounds()
getBounds in class GraphicsConfigurationpublic ColorModel getColorModel()
getColorModel in class GraphicsConfigurationpublic ColorModel getColorModel(int transparency)
transparencygetColorModel in class GraphicsConfigurationtransparency - the alpha value for the colour modelpublic AffineTransform getDefaultTransform()
getDefaultTransform in class GraphicsConfigurationpublic AffineTransform getNormalizingTransform()
getNormalizingTransform in class GraphicsConfigurationpublic GraphicsDevice getDevice()
getDevice in class GraphicsConfigurationCopyright © 2025 Apache Software Foundation. All rights reserved.