public class RGBImageData extends ImageAdapter implements IImage
imageDatabackground, height, widthCREATE_OPTION_DONT_SCALE_UP, CREATE_OPTION_IGNORE_ALPHA, CREATE_OPTION_KEEP_ASPECT_RATIO, CREATE_OPTION_ROUGH_SCALING, SCAN_LINE_BYTE_ARRAY, SCAN_LINE_INT_ARRAY, TYPE_ARGB, TYPE_GRAY_SCALE_16, TYPE_GRAY_SCALE_2, TYPE_GRAY_SCALE_256, TYPE_GRAY_SCALE_4, TYPE_INDEXED_16, TYPE_INDEXED_2, TYPE_INDEXED_256, TYPE_INDEXED_4, TYPE_MASK, TYPE_MONO, TYPE_RGB, TYPE_UNKNOWN| Constructor and Description |
|---|
RGBImageData()
If you use this constructor, make sure you call the set() method before
using any of the other methods.
|
RGBImageData(ImageData image) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
actsAsRGBImageData(ImageData image)
Return true if the specified ImageData acts in the same way that an RGBImageData would
act.
|
void |
free()
This only frees this Object's local data - it does not free the Image the RGBImage
wraps.
|
int[] |
getImageColorTable()
This always returns null.
|
int |
getImageScanLineLength()
This always returns the width of the original image.
|
void |
getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
Get the image scan lines, always as ARGB integer values.
|
int |
getImageScanLineType()
This always returns SCAN_LINE_INT_ARRAY;
|
int |
getImageType()
This returns either TYPE_ARGB or TYPE_RGB.
|
void |
setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
Set the image scan lines, always as ARGB integer values.
|
static ImageData |
toImageData(ImageData image,
RGBImageData wrapper)
If the specified Image implements RGBImageData in exactly the same way as
an RGBImageData does, then return the Image itself.
|
draw, drawableToIImage, drawRGB, getPixels, isReadableImage, isWriteableImage, set, setPixels, toIImage, usesAlphacreateImageFor, draw, draw, freeImage, getBackground, getCompatibleImagePoints, getDPI, getHeight, getImageData, getImageHeight, getImageWidth, getNativeDrawable, getPixelsUsingScanLines, getScanLinesUsingPixels, getWidth, scanLinesComplete, setPixelsUsingScanLines, setScanLinePixels, setScanLinesUsingPixelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackground, usesAlphafreeImage, getImageHeight, getImageWidth, getPixels, isReadableImage, isWriteableImage, setPixelspublic RGBImageData()
public RGBImageData(ImageData image)
public static boolean actsAsRGBImageData(ImageData image)
public static ImageData toImageData(ImageData image, RGBImageData wrapper)
public int getImageType()
getImageType in interface ImageDatagetImageType in class ImageAdapterpublic int getImageScanLineType()
getImageScanLineType in interface ImageDatagetImageScanLineType in class ImageAdapterpublic int getImageScanLineLength()
getImageScanLineLength in interface ImageDatagetImageScanLineLength in class ImageAdapterpublic void getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
getImageScanLines in interface ImageDatagetImageScanLines in class ImageAdapterpublic void setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
throws IllegalStateException
setImageScanLines in interface ImageDatasetImageScanLines in class ImageAdapterIllegalStateExceptionpublic int[] getImageColorTable()
getImageColorTable in interface ImageDatagetImageColorTable in class ImageAdapterpublic void free()
free in interface Drawablefree in class ImageAdapterDrawable.free()