How to draw a rectangle over an image?

Problems with Canvas, OpenGL, etc...

How to draw a rectangle over an image?

Postby panthe » Thu Mar 17, 2011 8:40 pm

Hi,
I'm trying to develop a simple game for Android like the famous DiffIt.
1) I want that in this game to be two images that divided the screen in two parts.
2) The images are the same image but with little difference, all the difference are collected in xml file with the coordinates.
3) If you touch the display over the difference of the images must appears a rectangle that show the difference, if you have touch the correct location.

Ok, this introduction only for explain my goal.
But I'm very very beginner in Android and I need your help.
The point 1 and 2 work for now, but I need a tips for the point number 3.
Have any idea?

Thanks Luca
panthe
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Mar 17, 2011 12:01 am

Top

Re: How to draw a rectangle over an image?

Postby Penteas » Tue Mar 22, 2011 3:01 pm

I'm with the same problem =(

I need to draw a cube above an image, but i don't know how.

Thanks Bruno
Penteas
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 04, 2011 11:55 am

Re: How to draw a rectangle over an image?

Postby Nomad0404 » Sun Mar 27, 2011 6:37 pm

Have a look here:

http://www.helloandroid.com/tutorials/h ... pps-part-2

Might find it very useful

Phil
Nomad0404
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Mar 07, 2011 10:23 pm

Top

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

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 3 guests