hello together,

i have some bitmaps in hdpi format and i want to draw these bitmaps
with canvas.drawBitmap(bitmap, x, y, null) on my screen. this works
fine for a 800 x 480 pixel screen resolution. if i have a bigger
screen resolution (1280 x 768 pixel) or smaller screen resolution (480
× 320 pixel), the bitmaps still drew in their original size instead of
autoscale bigger or smaller.
whats the best performing solution to autoscale the bitmaps / canvas?
Should i use the 800 x 480 pixel screen resolution as 100% and
calculate the scale factor manually?

<code>
final Bitmap background = BitmapFactory.decodeResource(resources,
drawableId);
....
canvas.drawBitmap(background, x, y, null);
....
</code>

Thank you for your help..

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