public class ImageDataInfo extends DataObject implements ImageData
| Modifier and Type | Field and Description |
|---|---|
int[] |
colorTable |
int |
height |
boolean |
isReadable |
boolean |
isWriteable |
int |
scanLineLength |
int |
scanLineType |
int |
type |
int |
width |
CREATE_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 |
|---|
ImageDataInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
freeImage()
This does nothing at all.
|
ImageDataInfo |
fromImageData(ImageData source) |
int[] |
getImageColorTable()
Returns the value of the field "colorTable"
|
int |
getImageHeight()
Returns the value of the field "height"
|
int |
getImageScanLineLength()
Returns the value of the field "scanLineLength"
|
void |
getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
This does nothing at all.
|
int |
getImageScanLineType()
Returns the value of the field "scanLineType"
|
int |
getImageType()
Returns the value of the field "type"
|
int |
getImageWidth()
Returns the value of the field "width"
|
int[] |
getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
This does nothing at all - always returns null.
|
boolean |
isReadableImage()
Returns the value of the field "isReadable"
|
boolean |
isWriteableImage()
Returns the value of the field "isWriteable"
|
void |
setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
This does nothing at all.
|
boolean |
setPixels(int[] src,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
This does nothing at all - always returns false.
|
boolean |
setScanLinePixels(int scanLine,
int[] pixels,
int offset,
int destX,
int destFrequency,
int numPixels,
int srcFrequency)
This does nothing at all - always returns false.
|
static ImageDataInfo |
toImageDataInfo(ImageData source) |
static ImageDataInfo |
toImageDataInfo(ImageData source,
ImageDataInfo destination) |
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewpublic int width
public int height
public int type
public int scanLineType
public int scanLineLength
public boolean isReadable
public boolean isWriteable
public int[] colorTable
public int getImageType()
getImageType in interface ImageDatapublic int getImageScanLineType()
getImageScanLineType in interface ImageDatapublic int getImageScanLineLength()
getImageScanLineLength in interface ImageDatapublic void getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
throws IllegalStateException
getImageScanLines in interface ImageDataIllegalStateExceptionpublic void setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
throws IllegalStateException
setImageScanLines in interface ImageDataIllegalStateExceptionpublic int getImageWidth()
getImageWidth in interface ImageDatapublic int getImageHeight()
getImageHeight in interface ImageDatapublic int[] getImageColorTable()
getImageColorTable in interface ImageDatapublic boolean isWriteableImage()
isWriteableImage in interface ImageDatapublic boolean isReadableImage()
isReadableImage in interface ImageDatapublic void freeImage()
public ImageDataInfo fromImageData(ImageData source)
public static ImageDataInfo toImageDataInfo(ImageData source, ImageDataInfo destination)
public static ImageDataInfo toImageDataInfo(ImageData source)
public int[] getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
getPixels in interface ImageDatadest - The destination int array. If this is null then a new array should be created.offset - The offset into the array to start placing pixels.x - the x co-ordinate within the image.y - the y co-ordinate within the image.width - the width of the pixel block to get.height - the height of the pixel block to get.rowStride - the number of int values between each row in the destination int array. If this is 0 it
will be assumed to be equal to width.public boolean setPixels(int[] src,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
setPixels in interface ImageDatasrc - The source int array.offset - The offset into the array to start retrieving pixels.x - the x co-ordinate within the image.y - the y co-ordinate within the image.width - the width of the pixel block to get.height - the height of the pixel block to get.rowStride - the number of int values between each row in the source int array. If this is 0 it
will be assumed to be equal to width.public boolean setScanLinePixels(int scanLine,
int[] pixels,
int offset,
int destX,
int destFrequency,
int numPixels,
int srcFrequency)