|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jzy3d.plot3d.rendering.image.GLImage
public class GLImage
| Field Summary | |
|---|---|
protected static int |
SIZE_BYTE
|
| Constructor Summary | |
|---|---|
GLImage()
|
|
| Method Summary | |
|---|---|
static ByteBuffer |
allocBytes(byte[] bytearray)
Same function as in GLApp.java. |
static byte[] |
convertARGBtoRGBA(int[] jpixels)
Convert pixels from java default ARGB int format to byte array in RGBA format. |
static ByteBuffer |
convertImagePixels(int[] jpixels,
int imgw,
int imgh,
boolean flipVertically)
Convert ARGB pixels to a ByteBuffer containing RGBA pixels. |
static int[] |
flipPixels(int[] imgPixels,
int imgw,
int imgh)
Flip an array of pixels vertically |
static ByteBuffer |
getImageAsGlByteBuffer(Image image,
int width,
int height)
|
static int[] |
getImagePixels(Image image,
int width,
int height)
Return the image pixels in default Java int ARGB format. |
static byte[] |
getRGBABytes(int[] jpixels)
|
static ByteBuffer |
toByteBuffer(Image img,
int imgWidth,
int imgHeight)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int SIZE_BYTE
| Constructor Detail |
|---|
public GLImage()
| Method Detail |
|---|
public static ByteBuffer getImageAsGlByteBuffer(Image image,
int width,
int height)
public static int[] getImagePixels(Image image,
int width,
int height)
public static ByteBuffer convertImagePixels(int[] jpixels,
int imgw,
int imgh,
boolean flipVertically)
imgFilename -
public static int[] flipPixels(int[] imgPixels,
int imgw,
int imgh)
imgPixels - imgw - imgh -
public static byte[] convertARGBtoRGBA(int[] jpixels)
jpixels -
public static byte[] getRGBABytes(int[] jpixels)
public static ByteBuffer allocBytes(byte[] bytearray)
bytearray -
public static ByteBuffer toByteBuffer(Image img,
int imgWidth,
int imgHeight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||