I doubt you have an 8192x8192 screen. So figure out what you re actually doing with the image and then only use as much as you need or all of it scaled to screen size.
On Jun 25, 6:52 am, Mark Murphy <[email protected]> wrote: > On Fri, Jun 25, 2010 at 6:42 AM, xhy <[email protected]> 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/commonsguyhttp://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 [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

