View Single Post
Old 09-18-2008, 08:42 PM   #20
nyte3k
Thumbs Must Hurt
 
nyte3k's Avatar
 
Join Date: May 2008
Model: 8320
PIN: N/A
Carrier: Tmobile
Posts: 62
Default

Quote:
Originally Posted by goulamass View Post
I'm thinking:

Is it possible by using the same method to use a picture in background???
Yes it is...

in your paintBackground() method you would have something like the following...

Code:
g.clear();
Bitmap bgImage = Bitmap.getBitmapResource("yourImage.png");
g.drawBitmap(0, 0, bgImage.getWidth(), bgImage.getHeight(), bgImage, 0, 0);
Offline   Reply With Quote