|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The ImageOperations interface defines an object that is used
by the Graphics API to perform operations upon images.
This layer of abstraction is needed by the Graphics API in order to be able to work with different window toolkits like the AWT or SWT.
| Method Summary | |
byte[] |
jpegEncode(int width,
int height,
int[] pixels,
float quality,
boolean forceBaseline)
Encodes the given pixel data to JPEG data. |
Raster |
loadImage(java.lang.String imagepath)
|
Raster |
loadImage(java.net.URL imagepath)
|
Raster |
loadImageResource(java.lang.Class referenceClass,
java.lang.String imagepath)
|
Raster |
loadImageResource(java.lang.String imagepath)
|
| Method Detail |
public Raster loadImageResource(java.lang.String imagepath)
public Raster loadImageResource(java.lang.Class referenceClass,
java.lang.String imagepath)
public Raster loadImage(java.lang.String imagepath)
public Raster loadImage(java.net.URL imagepath)
public byte[] jpegEncode(int width,
int height,
int[] pixels,
float quality,
boolean forceBaseline)
width - The width of the imageheight - The height of the imagepixels - The pixel array width a size of width*height
containing the colors encoded as 0xRRGGBBquality - The JPEG quality (0.0f - 1.0f)forceBaseline - The force baseline setting for the JPEG encoder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||