|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jzy3d.io.GLImage
public class GLImage
| Constructor Summary | |
|---|---|
GLImage()
|
|
| Method Summary | |
|---|---|
static java.nio.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 java.nio.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 java.nio.ByteBuffer |
getImageAsGlByteBuffer(java.awt.Image image,
int width,
int height)
|
static int[] |
getImagePixels(java.awt.Image image,
int width,
int height)
Return the image pixels in default Java int ARGB format. |
static byte[] |
getRGBABytes(int[] jpixels)
|
static java.nio.ByteBuffer |
toByteBuffer(java.awt.Image img,
int imgWidth,
int imgHeight)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLImage()
| Method Detail |
|---|
public static java.nio.ByteBuffer getImageAsGlByteBuffer(java.awt.Image image,
int width,
int height)
public static int[] getImagePixels(java.awt.Image image,
int width,
int height)
public static java.nio.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 java.nio.ByteBuffer allocBytes(byte[] bytearray)
bytearray -
public static java.nio.ByteBuffer toByteBuffer(java.awt.Image img,
int imgWidth,
int imgHeight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||