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 <[email protected]> wrote:

> 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, May 14, 2013 3:58:05 PM UTC-5, Romain Guy (Google) wrote:
>>
>> You can query the maximum size using Canvas.getMaximumBitmapWidth/**
>> Height():
>> http://developer.android.com/**reference/android/graphics/**Canvas.html#*
>> *getMaximumBitmapWidth()<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 is bigger than
>> 2048px.)
>>
>>
>> On Tue, May 14, 2013 at 11:08 AM, Thyme Cypher <[email protected]>wrote:
>>
>>> 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 (As I'm not creating one and don't have access to the one that the
>>> operating system creates, as far as I know at least) and ideally without
>>> first attempting to render said image (As so there isn't a flash frame
>>> without an image) and using exception handling.
>>>
>>> Thanks,
>>> James L
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@**googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+**[email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+**[email protected].
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>> [email protected]
>>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Romain Guy
Android framework engineer
[email protected]

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to