Can Anyone help me on this ?
On Tue, May 5, 2009 at 6:31 PM, bhoj <[email protected]> wrote:

>
> 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,
>
> Bhoj
>
> >
>


-- 
with regards vishal

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to