Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.util.Utils Class Reference

Static Public Member Functions

static boolean isCompatibleWithOpenGL (Bitmap bitmap)
 Check if the bitmap is compatible to use it with OpenGL, if not, use resizeImageToPowerOfTwo(bitmap) method. More...
 
static Bitmap resizeImageToPowerOfTwo (Bitmap bitmap)
 Prepare the image to draw it using OpenGL. More...
 

Static Public Attributes

static final int MAX_SIZE = 512
 

Member Function Documentation

static boolean com.beyondar.android.util.Utils.isCompatibleWithOpenGL ( Bitmap  bitmap)
static

Check if the bitmap is compatible to use it with OpenGL, if not, use resizeImageToPowerOfTwo(bitmap) method.

Parameters
bitmapThe bitmap to check
Returns
True if there are no problems, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

static Bitmap com.beyondar.android.util.Utils.resizeImageToPowerOfTwo ( Bitmap  bitmap)
static

Prepare the image to draw it using OpenGL.

There are devices that doesn't support images non power of two (size). Remember to recicle die bitmap if the old one is not needed anymore

Parameters
bitmap
Returns

The documentation for this class was generated from the following file: