public class

GLHelper

extends Object
java.lang.Object
   ↳ org.andengine.opengl.util.GLHelper

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
GLHelper()
Public Methods
static byte[] convertARGB_8888toA_8(int[] pPixelsARGB_8888)
static short[] convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888)
static short[] convertARGB_8888toRGBA_4444(int[] pPixelsARGB_8888, ByteOrder pByteOrder)
static int[] convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888, ByteOrder pByteOrder)
static int[] convertARGB_8888toRGBA_8888(int[] pPixelsARGB_8888)
static short[] convertARGB_8888toRGB_565(int[] pPixelsARGB_8888)
static short[] convertARGB_8888toRGB_565(int[] pPixelsARGB_8888, ByteOrder pByteOrder)
static int[] convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888)
static int[] convertRGBA_8888toARGB_8888(int[] pPixelsRGBA_8888, ByteOrder pByteOrder)
static int[] convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888, int pWidth, int pHeight, ByteOrder pByteOrder)
static int[] convertRGBA_8888toARGB_8888_FlippedVertical(int[] pPixelsRGBA_8888, int pWidth, int pHeight)
static Buffer getPixels(Bitmap pBitmap, PixelFormat pPixelFormat)
TODO These conversions could be done in native code!
static Buffer getPixels(Bitmap pBitmap, PixelFormat pPixelFormat, ByteOrder pByteOrder)
static int[] getPixelsARGB_8888(Bitmap pBitmap)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GLHelper ()

Public Methods

public static byte[] convertARGB_8888toA_8 (int[] pPixelsARGB_8888)

public static short[] convertARGB_8888toRGBA_4444 (int[] pPixelsARGB_8888)

public static short[] convertARGB_8888toRGBA_4444 (int[] pPixelsARGB_8888, ByteOrder pByteOrder)

public static int[] convertARGB_8888toRGBA_8888 (int[] pPixelsARGB_8888, ByteOrder pByteOrder)

public static int[] convertARGB_8888toRGBA_8888 (int[] pPixelsARGB_8888)

public static short[] convertARGB_8888toRGB_565 (int[] pPixelsARGB_8888)

public static short[] convertARGB_8888toRGB_565 (int[] pPixelsARGB_8888, ByteOrder pByteOrder)

public static int[] convertRGBA_8888toARGB_8888 (int[] pPixelsRGBA_8888)

public static int[] convertRGBA_8888toARGB_8888 (int[] pPixelsRGBA_8888, ByteOrder pByteOrder)

public static int[] convertRGBA_8888toARGB_8888_FlippedVertical (int[] pPixelsRGBA_8888, int pWidth, int pHeight, ByteOrder pByteOrder)

public static int[] convertRGBA_8888toARGB_8888_FlippedVertical (int[] pPixelsRGBA_8888, int pWidth, int pHeight)

public static Buffer getPixels (Bitmap pBitmap, PixelFormat pPixelFormat)

TODO These conversions could be done in native code!

public static Buffer getPixels (Bitmap pBitmap, PixelFormat pPixelFormat, ByteOrder pByteOrder)

public static int[] getPixelsARGB_8888 (Bitmap pBitmap)