|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.util.image.ImageFilter
public final class ImageFilter
ImageFilter contains a set of convenience methods for processing the pixels in an image.
Constructor Summary | |
---|---|
ImageFilter()
|
Method Summary | |
---|---|
byte[] |
adjustScan(int imgWidth,
int imgHeight,
byte[] img)
Adjust the width of each row in an image so the data is aligned to a 16-bit word boundary when loaded in memory. |
void |
applyAlpha(byte[] img)
Apply the level for the alpha channel to the red, green and blue colour channels for encoding the image so it can be added to a Flash movie. |
byte[] |
invertRGB(byte[] image,
int width,
int height)
|
byte[] |
merge(byte[] img,
byte[] colors)
Concatenate the colour table and the image data together. |
byte[] |
mergeAlpha(byte[] img,
byte[] colors)
Concatenate the colour table and the image data together. |
void |
orderABGR(byte[] img)
Reorder the image pixels from RGBA to ABGR. |
void |
orderAlpha(byte[] img)
Reorder the image pixels from RGBA to ARGB. |
byte[] |
packColors(int imgWidth,
int imgHeight,
byte[] img)
Convert an image with 32-bits for the red, green, blue and alpha channels to one where the channels each take 5-bits in a 16-bit word. |
byte[] |
removeAlpha(byte[] image)
|
void |
reverseRGB(byte[] image)
|
void |
reverseRGBA(byte[] image)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFilter()
Method Detail |
---|
public byte[] removeAlpha(byte[] image)
public byte[] invertRGB(byte[] image, int width, int height)
public void reverseRGB(byte[] image)
public void reverseRGBA(byte[] image)
public byte[] packColors(int imgWidth, int imgHeight, byte[] img)
imgWidth
- the width of the image in pixels.imgHeight
- the height of the image in pixels.img
- the image data.
public byte[] adjustScan(int imgWidth, int imgHeight, byte[] img)
imgWidth
- the width of the image in pixels.imgHeight
- the height of the image in pixels.img
- the image data.
public void orderAlpha(byte[] img)
img
- the image data.public void orderABGR(byte[] img)
img
- the image data.public void applyAlpha(byte[] img)
img
- the image data.public byte[] merge(byte[] img, byte[] colors)
img
- the image data.colors
- the colour table.
public byte[] mergeAlpha(byte[] img, byte[] colors)
img
- the image data.colors
- the colour table.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |