public class BufferedImageData extends ImageObject implements IScanLineStore
| Modifier and Type | Field and Description |
|---|---|
java.awt.image.BufferedImage |
bi |
background, 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 |
|---|
BufferedImageData(java.awt.image.BufferedImage bi) |
BufferedImageData(ImageData from) |
BufferedImageData(ImageData from,
boolean dontCopy) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics g,
int x,
int y,
int options) |
void |
free() |
void |
freeScanLines() |
void |
getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
Place a set of scan lines into a destination array.
|
void |
getPixels(int[] dest,
int offset,
int line) |
int[] |
getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
Retrieve the pixels from the Image in encoded ARGB values.
|
boolean |
isWriteableImage()
Returns if you can write data to the ImageData.
|
void |
setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
Place a set of scan lines from a source Array into the ImageData.
|
boolean |
setPixels(int[] src,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
Set the pixels in the IImage in encoded ARGB values.
|
boolean |
usesAlpha()
Returns whether the image uses the Alpha channel.
|
createImageFor, draw, draw, freeImage, getBackground, getCompatibleImagePoints, getDPI, getHeight, getImageColorTable, getImageData, getImageHeight, getImageScanLineLength, getImageScanLineType, getImageType, getImageWidth, getNativeDrawable, getPixelsUsingScanLines, getScanLinesUsingPixels, getWidth, isReadableImage, scanLinesComplete, setPixelsUsingScanLines, setScanLinePixels, setScanLinesUsingPixelspublic BufferedImageData(java.awt.image.BufferedImage bi)
public BufferedImageData(ImageData from)
public BufferedImageData(ImageData from, boolean dontCopy)
public void draw(Graphics g, int x, int y, int options)
public void free()
free in interface Drawablefree in class ImageObjectpublic int[] getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int rowStride)
ImageDatagetPixels 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)
ImageDatasetPixels 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 usesAlpha()
IImagepublic void getImageScanLines(int startLine,
int numLines,
Object destArray,
int offset,
int destScanLineLength)
throws IllegalStateException
ImageDatagetImageScanLines in interface ImageDataIllegalStateExceptionpublic void setImageScanLines(int startLine,
int numLines,
Object sourceArray,
int offset,
int sourceScanLineLength)
throws IllegalStateException
ImageDatasetImageScanLines in interface ImageDataIllegalStateExceptionpublic boolean isWriteableImage()
ImageDataisWriteableImage in interface ImageDatapublic void getPixels(int[] dest,
int offset,
int line)
getPixels in interface IScanLineStorepublic void freeScanLines()
freeScanLines in interface IScanLineStore