Hello All,
I want to decode high resolution pics something like 8 mega pixel
images and view it. when I try to decode them I get out of memory
exception. Decoding of single 8 mega pixel also fails . From the
Imagamanager code and other post I could use BitmapFactory.Options
inJustDecodeBounds I could get a scaled down version of the Image .
Bitmap Bm =
BitmapFactory.decodeResource(getResources
(),R.drawable.two,opts);
opts.inJustDecodeBounds=false;
opts.inSampleSize =8;
Bm = BitmapFactory.decodeResource(getResources(),R.drawable.two,
opts);
imageView.setImageBitmap(Bm);
Is there any way to decode part of the Image and fill it on the screen
and by scrolling decode other reagion of the image and display it.
Any pointers on this would be appreciated,
Thanks in advance,
--
with regards vishal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---