i want to paly a 8192*8192 image int a big TV screen,as a result such a big image is needed.
2010/6/25 Mike dg <vinb...@gmail.com> > 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 <mmur...@commonsware.com> wrote: > > On Fri, Jun 25, 2010 at 6:42 AM, xhy <xhyg...@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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy<http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- xhy -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en