public class ImageBuffer extends Object
Modifier and Type | Field and Description |
---|---|
Graphics |
graphics |
Image |
image |
int |
imageCreationOptions |
static int |
maxCachedSize
This is the maximum image size in pixels (width*height) that should be cached.
|
Constructor and Description |
---|
ImageBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
cached() |
void |
free() |
Graphics |
get(int width,
int height) |
Graphics |
get(int width,
int height,
boolean exactly) |
Graphics |
getBuffer(int width,
int height,
Rect area,
Color background,
boolean exactly) |
boolean |
isSameSize(int width,
int height) |
protected Image |
newBuffer(int width,
int height,
int creationOptions) |
protected Image |
newImage(int width,
int height,
int creationOptions) |
public Image image
public Graphics graphics
public static int maxCachedSize
public int imageCreationOptions
public void free()
public boolean isSameSize(int width, int height)
public Graphics get(int width, int height)
protected Image newImage(int width, int height, int creationOptions)
protected Image newBuffer(int width, int height, int creationOptions)
public Graphics get(int width, int height, boolean exactly)
public Graphics getBuffer(int width, int height, Rect area, Color background, boolean exactly)
public void cached()