Re: [android-developers] how to play a 8192*8192 image ?
On Fri, Jun 25, 2010 at 6:42 AM, xhy <xhygood@gmail.com> wrote:
> I want to play a 8192*8192 image,but the system exists a "overflow of
> memory" exception,what should i do ? Thank you!
That is a ~200MB image uncompressed (8192 x 8192 x 3 bytes), and you
have 16MB to work with.
The simplest option is to use a smaller image to start with.
The next-simplest option is to scale the image, as youken suggests,
though this will take some time.
The option that keeps your size is to split the image into tiles, like
Google Maps does, and show only a few tiles at a time.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home