public interface ImageMaker
Modifier and Type | Method and Description |
---|---|
void |
createImageFor(ImageDataInfo imageInfo)
This is called at the start of decoding - to let the ImageMaker know the parameters
of the image to be created.
|
ImageData |
getImageData()
After decoding is done this is used to retrieve the fully decoded image.
|
boolean |
setScanLinePixels(int scanLine,
int[] pixels,
int offset,
int destX,
int destFrequency,
int numPixels,
int srcFrequency)
This is used when decoding images.
|
void createImageFor(ImageDataInfo imageInfo) throws IllegalArgumentException
imageInfo
- information on the image to be decoded.IllegalArgumentException
- if the ImageMaker decides it cannot create the image.boolean setScanLinePixels(int scanLine, int[] pixels, int offset, int destX, int destFrequency, int numPixels, int srcFrequency)
scanLine
- the scan line being set.pixels
- an array containing the scan line ARGB pixel values.offset
- the start of the pixel within the pixels array.destX
- the x location where the first pixel should be placed.destFrequency
- the distance between the pixels being provided. If this
value is 1, then the pixels are actually right next to each other. A value of
2 means that every other pixel is being done.numPixels
- the number of pixels being set.srcFrequency
- the distance between the pixels in the pixels array.
This will usually be 1 but may be any other distance.ImageData getImageData()