Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-16 Thread Romain Guy
You are looking at the implementation for the software renderer. The hardware renderer will return a value specific to the GPU. On Wed, May 15, 2013 at 2:33 PM, bob wrote: > I'm looking at the code for *getMaximumBitmapWidth*, and it looks like it > always returns 32766: > > private static fi

Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-15 Thread bob
I'm looking at the code for *getMaximumBitmapWidth*, and it looks like it always returns 32766: private static final int MAXMIMUM_BITMAP_SIZE = 32766; * public int getMaximumBitmapWidth() {* * return MAXMIMUM_BITMAP_SIZE;* * }* Am I missing something? Thanks. On Tuesday, Ma

Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-14 Thread Romain Guy
You can query the maximum size using Canvas.getMaximumBitmapWidth/Height(): http://developer.android.com/reference/android/graphics/Canvas.html#getMaximumBitmapWidth() You can also assume 2048px as the maximum unless the screen is bigger (Nexus 10 for instance supports 4096px max since the screen

[android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-14 Thread Thyme Cypher
I'm attempting to display a rather large bitmap VIA an ImageView, which when Hardware Acceleration is enabled of course, has issues with texture sizes (I'm well aware of texture size limitations in 3D engines). My question is how to get what the maximum image size is without an OpenGL context (