Scale problem with canvas

Problems with Canvas, OpenGL, etc...

Scale problem with canvas

Postby GerdGerdGerd » Sun Apr 22, 2012 3:51 pm

hello together,

i have some bitmaps in hdpi format and i 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), the bitmaps still drew with their original size. 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?

Thank you for your help..

Junior Developer
Junior Developer
Posts: 19
Joined: Sun Jun 05, 2011 6:14 pm


Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 1 guest