Load bitmap resource

All your problems with Audio, Video and Images.

Load bitmap resource

Postby Maguelo » Sat Mar 20, 2010 10:49 pm

Hello everybody,

I am creating a game and I'm trying to develop a Tile based map.
The problem that I've got is that when loading the tiles bitmap which is a 48x24 160ppp .png using this code:

mBitmap = BitmapFactory.decodeResource(context.getResources(), imageId);

the resulting mBitmap object dimensions are 32x16...

Why am I doing wrong?

PS: the AVD emulator that I'm using is configured to hw.lc.density = 160

Thaxs
Maguelo
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Mar 20, 2010 10:30 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 9 guests