Hi,
           I am creating live wallpapers from .png or .jpg images that
have 300 dpi.Since android screens have lower dpi do I need to have
smaller  .png/.jpg images to get the correct image on the screen.The
code I use to draw on the canvas(c) is given bellow:

         bmp = BitmapFactory.decodeResource(res, R.drawable.image);
         bmp =
Bitmap.createScaledBitmap(bmp,c.getWidth(),c.getHeight(),true);
         c.drawBitmap(bmp,0,0,null);

        Thanks in advance ,

           Aamir

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