Just use BitmapFactory.Options and set the value inJustDecodeBounds to true. This will ask BitmapFactory to only decode the size of the image, not the image itself.
On Thu, Oct 2, 2008 at 3:41 PM, Gil <[EMAIL PROTECTED]> wrote: > > My app need to load a large image from the SD card. I would like to > use the decodeFile from BitmapFactory to open the file. Before I call > decodeFile I would like to learn the dimensions of the image. Is there > a class that can help me extract image "metadata" (without decoding > the entire file)? > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

