public class GLHelper
extends java.lang.Object
| Constructor and Description |
|---|
GLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertARGB_8888toA_8(int[] pPixelsARGB_8888) |
static short[] |
convertARGB_8888toRGB_565(int[] pPixelsARGB_8888) |
static short[] |
convertARGB_8888toRGB_565(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder) |
static short[] |
convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888) |
static short[] |
convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder) |
static int[] |
convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888) |
static int[] |
convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder) |
static int[] |
convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888,
int pWidth,
int pHeight) |
static int[] |
convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888,
int pWidth,
int pHeight,
java.nio.ByteOrder pByteOrder) |
static int[] |
convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888) |
static int[] |
convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888,
java.nio.ByteOrder pByteOrder) |
static java.nio.Buffer |
getPixels(android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat)
TODO These conversions could be done in native code!
|
static java.nio.Buffer |
getPixels(android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat,
java.nio.ByteOrder pByteOrder) |
static int[] |
getPixelsARGB_8888(android.graphics.Bitmap pBitmap) |
public static java.nio.Buffer getPixels(android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat)
public static java.nio.Buffer getPixels(android.graphics.Bitmap pBitmap,
PixelFormat pPixelFormat,
java.nio.ByteOrder pByteOrder)
public static int[] convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888)
public static int[] convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder)
public static short[] convertARGB_8888toRGB_565(int[] pPixelsARGB_8888)
public static short[] convertARGB_8888toRGB_565(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder)
public static short[] convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888)
public static short[] convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888,
java.nio.ByteOrder pByteOrder)
public static byte[] convertARGB_8888toA_8(int[] pPixelsARGB_8888)
public static int[] getPixelsARGB_8888(android.graphics.Bitmap pBitmap)
public static int[] convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888)
public static int[] convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888,
java.nio.ByteOrder pByteOrder)
public static int[] convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888,
int pWidth,
int pHeight)
public static int[] convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888,
int pWidth,
int pHeight,
java.nio.ByteOrder pByteOrder)