Hi all !

Here is my problem :
I would to make a simple application. The aim is to display map, which
is a jpg picture. The user could move and zoom on it, in order to view
a particular place. So the picture has to be in high quality.

So I start to load my picture from ressource with :
Variable : private Drawable image;
In my class constructor : image=context.getResources().getDrawable
(R.drawable.mypicture);

The original picture size is 3543x2300 and its weight is 498ko. But
when the load instruction is running, the emulator gives me this
error : "VM won't let us allocate 16297800 bytes".

I thought that load a picture of this huge size will cause some
problems, but I really don't know how to solve it... Maybe use OpenGL
2D or something like that...

Can you give me some help, please ?

Thank you everyone !

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