|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--agile2d.opengl.ImageUtils
Performs operations on Java AWT BufferedImage data.
In particular, provides methods to convert from Java component ordering (A,R,G,B) to OpenGL component ordering (R, G, B, A) - necessary because for some unknowable reason Java and OpenGL's large set of component orderings manage to not overlap!
| Constructor Summary | |
ImageUtils()
|
|
| Method Summary | |
static int |
ARGBtoRGBA(int srcPix)
|
static void |
convertAndFlipARGBtoRGBA(int[] srcPixels,
int imageWidth,
int imageHeight,
int width,
int height)
Converts a Java ARGB Image into a GL RGBA Image. |
static void |
convertARGBtoRGBA(int[] srcPixels,
int srcScanSize,
int sx1,
int sy1,
int width,
int height,
int[] dstPixels,
int dstScanSize)
Converts a Java ARGB Image into a GL RGBA Image. |
static int |
nextPowerOf2(int size)
Returns the power of 2 immediately larger or equal to the specified size |
static int |
RGBAtoARGB(int srcPix)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageUtils()
| Method Detail |
public static int nextPowerOf2(int size)
size - the size
public static int ARGBtoRGBA(int srcPix)
public static int RGBAtoARGB(int srcPix)
public static void convertARGBtoRGBA(int[] srcPixels,
int srcScanSize,
int sx1,
int sy1,
int width,
int height,
int[] dstPixels,
int dstScanSize)
public static void convertAndFlipARGBtoRGBA(int[] srcPixels,
int imageWidth,
int imageHeight,
int width,
int height)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||