Create a bitmap with others bitmaps.

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Create a bitmap with others bitmaps.

Postby Bobo_leskimo » Wed Jun 24, 2009 11:03 am

Hello !

I'm new on this forum. I'm sorry if my english is not good, but I'm french. I've got a problem in a little game that I'm developping for an android platform. I'd like to draw on a canvas some bitmaps, and create with this bitmaps new bitmaps that I could draw instead of drawing all of the other bitmpas. Is it possible ? Thank.
Bobo_leskimo
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jun 24, 2009 10:57 am

Top

Postby LeToulousain » Wed Jun 24, 2009 2:11 pm

Hello Bobo,

I'm too interested by the answers to your question.

I'm trying to do an application a bit like google map but with my own maps, so the map is my first bmp and the cursor of my position the other.


I have tryed :
to define the two bitmaps in the layout (main.xml) but I didn' arrive to move one bitmap on the other by this way

I have tryed an other method using the canvas :
canvas.drawBitmap(mBackGround, 0, 0, new Paint());
canvas.drawBitmap(mSnowflake, 20, 50, new Paint());
inspired from the sample of MrSnowflake "GameTemplate.zip" here : http://www.anddev.org/2d_tutorial-t3120.html

it works.
LeToulousain
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jun 24, 2009 1:44 pm

Top

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

Who is online

Users browsing this forum: No registered users and 6 guests