ImageDatapublic final class ImageData extends Object implements AbstractImageDataImage that is based on platform decoder and storage. |
Fields Summary |
---|
private int | widthThe width, height of this Image | private int | height | private boolean | isMutableIf this Image is mutable. | private int | nativeImageDataNative image data pointer. |
Constructors Summary |
---|
ImageData()Constructs ImageData with width and height set to zero.
width = 0;
height = 0;
| ImageData(int width, int height, boolean isMutable)Constructs ImageData using passed in width and height.
this.width = width;
this.height = height;
this.isMutable = isMutable;
|
Methods Summary |
---|
private native void | finalize()Cleanup any native resources used by an ImmutableImage
| public int | getHeight()Gets the height of the image in pixels. The value returned
must reflect the actual height of the image when rendered.
return height;
| public int | getWidth()Gets the width of the image in pixels. The value returned
must reflect the actual width of the image when rendered.
return width;
| public boolean | isMutable()Check if this image is mutable. Mutable images can be modified by
rendering to them through a Graphics object
obtained from the
getGraphics() method of this object.
return isMutable;
|
|