So I have a huge image (2000 x 2000) that is way too big for the Android VM to load in (there's a 16 MB limit per application). That's fine with me, as I only want to load in one screen size (320 x 480) at a time, which Android should more than be able to handle. The problem is, how do you load in just one piece of a bitmap? I've tried the following:
Bitmap bmp1 = BitmapFactory.decodeResource(res, R.drawable.image); Bitmap bmp2 = Bitmap.createBitmap(bmp1, 0, 0, 320, 480); But of course the loading is really done in that first line, so the VM crashes. I also tried using BitmapFactory.Options and specifying an outWidth and outHeight, but those just scale the image rather than translate/ crop it. Something along the lines of those options would be really nice though. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

