| |
ImageRep ImageRep() |
| |
ImageRep ImageRep(String name, byte[] rgb,
boolean png, int width, int height) |
| Parameters |
name |
The name of the ImageRep object.
|
rgb |
A byte array containing RGB data of the image.
|
png |
Whether the image is already png encoded.
|
width |
The width of the image.
|
height |
The height of the image.
|
| |
ImageRep ImageRep(String name, int[] argb,
boolean png, int width, int height) |
| Parameters |
name |
The name of the ImageRep object.
|
argb |
An int array containing the ARGB data of the image.
|
png |
Whether the image is already png encoded.
|
width |
The width of the image.
|
height |
The height of the image.
|
| |
void setName(String name) |
| Parameters |
name |
The new name.
|
| |
String getName() |
| Returns | The current name. |
| |
void setWidth(int width) |
| Parameters |
width |
The new width.
|
| |
int getWidth() |
| Returns | The current width. |
| |
void setHeight(int height) |
| Parameters |
height |
The new height.
|
| |
int getHeight() |
| Returns | The current height. |
| |
void setPng(byte[] png) |
| Parameters |
png |
The new RGB data.
|
| |
byte[] getPng() |
| Returns | The current RGB data. |
| |
void setARGB(int[] argb) |
| Parameters |
argb |
The new ARGB data.
|
| |
int[] getARGB() |
| Returns | The current ARGB data. |
| |
void setComparator(ImageComparator comparator) |
| Parameters |
comparator |
The new ImageComparator implementation.
|
| |
ImageComparator getComparator() |
| Returns | The current ImageComparator implementation. |
| |
boolean equals(ImageRep compare) |
| Parameters |
compare |
The ImageRep object to compare with.
|
| Returns | True, if images are equal, otherwise false. |
| |
int getPixel(int x, int y) |
| Parameters |
x |
The X co-ordinate of the pixel.
|
y |
The Y co-ordinate of the pixel.
|
| Returns | The pixel value. |
| |
void crop(int x, int y, int width, int height) |
| Parameters |
x |
The X co-ordinate of the left upper corner of the sub-region.
|
y |
The Y co-ordinate of the left upper corner of the sub-region.
|
width |
The width of the sub-region.
|
height |
The height of the sub-region.
|
| |