| |
ImageRep ImageRep() |
| |
ImageRep ImageRep(String name, byte[] rgb,
boolean png, int width, int height) |
| Parameter |
name |
Der Name des ImageRep Objektes.
|
rgb |
Ein byte-Feld, das die RGB-Information des Bildes enthält.
|
png |
Gibt an, ob das Bild bereits PNG formatiert ist.
|
width |
Die Breite des Bildes.
|
height |
Die Höhe des Bildes.
|
| |
ImageRep ImageRep(String name, int[] argb,
boolean png, int width, int height) |
| Parameter |
name |
Der Name des ImageRep Objektes.
|
argb |
Ein int-Feld, das die ARGB-Information des Bildes enthält.
|
png |
GIbt an, ob das Bild bereits PNG formatiert ist.
|
width |
Die Breite des Bildes.
|
height |
Die Höhe des Bildes.
|
| |
void setName(String name) |
| Parameter |
name |
Der neue Name.
|
| |
String getName() |
| Rückgabewert | Der aktuelle Name. |
| |
void setWidth(int width) |
| Parameter |
width |
Die neue Breite.
|
| |
int getWidth() |
| Rückgabewert | Die aktuelle Breite. |
| |
void setHeight(int height) |
| Parameter |
height |
Die neue Höhe.
|
| |
int getHeight() |
| Rückgabewert | Die aktuelle Höhe. |
| |
void setPng(byte[] png) |
| Parameter |
png |
Die neue RGB Information.
|
| |
byte[] getPng() |
| Rückgabewert | Die aktuelle RGB Information. |
| |
void setARGB(int[] argb) |
| Parameter |
argb |
Die neue ARGB Information.
|
| |
int[] getARGB() |
| Rückgabewert | Die aktuelle ARGB Information. |
| |
void setComparator(ImageComparator comparator) |
| Parameter |
comparator |
Die neue ImageComparator Implementierung.
|
| |
ImageComparator getComparator() |
| Rückgabewert | Die aktuelle ImageComparator Implementierung. |
| |
boolean equals(ImageRep compare) |
| Parameter |
compare |
Das zu vergleichende ImageRep Objekt.
|
| Rückgabewert | True, wenn die Bilder gleich sind, sonst false. |
| |
int getPixel(int x, int y) |
| Parameter |
x |
Die X Koordinate des Pixels.
|
y |
Die Y Koordinate des Pixels.
|
| Rückgabewert | Der Pixelwert. |
| |
void crop(int x, int y, int width, int height) |
| Parameter |
x |
Die X Koordinate der linken oberen Ecke des Bereiches.
|
y |
Die Y Koordinate der linken oberen Ecke des Bereiches.
|
width |
Die Breite des Bereiches.
|
height |
Die Höhe des Bereiches.
|
| |