public class AWTImageCreator extends Object implements ImageManager.OptimalImageCreator
| Constructor and Description |
|---|
AWTImageCreator(Component context)
Create an image creator that will rely on the AWT to determine the
optimal image format.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
createImage(int width,
int height,
int trans)
Requests that a blank image be created that is in a format and of a depth that are
optimal for rendering to the screen.
|
public AWTImageCreator(Component context)
context - if non-null, the graphics configuration will be obtained
therefrom; otherwise GraphicsDevice.getDefaultConfiguration()
will be used.public BufferedImage createImage(int width, int height, int trans)
ImageManager.OptimalImageCreatorcreateImage in interface ImageManager.OptimalImageCreatorCopyright © 2015. All rights reserved.