Moving and zooming an object in 2D

Problems with Canvas, OpenGL, etc...

Moving and zooming an object in 2D

Postby illion » Fri Mar 04, 2011 12:50 pm

Hello,

Didnt know if I posted in the wrong category.

This is more of a theoretical question, I will try to explain what I want to achieve.

First of all I want to create polygons in 2D with 3D effects, gradients and shadows. I dont know what library to use for drawing these shapes, like squares, rectangles, arrows and so on. Do I have to refer to a 3D environment or can I stick with 2D, please advice :!:

Then I want to take this polygon an use it like an image, move it (x,y) and zoom in and out. Since it should be vector graphics zooming wont reduce quality hopefully. Is the best way to put the polygon in a view and resize the view:?:
In the future there will be alot more than one polygon in the view.

Regards
/Robert
illion
Freshman
Freshman
 
Posts: 6
Joined: Fri Mar 04, 2011 3:51 am

Top

Re: Moving and zooming an object in 2D

Postby raj_J2ME » Thu Mar 10, 2011 1:14 pm

Welcome to the Android Developer DiBo,

This link include the same discussion, please check if this helps you,
http://www.anddev.org/drawing_shapes_with_xml-t1167.html
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: Moving and zooming an object in 2D

Postby illion » Thu Mar 17, 2011 3:25 pm

raj_J2ME wrote:Welcome to the Android Developer DiBo,

This link include the same discussion, please check if this helps you,
http://www.anddev.org/drawing_shapes_with_xml-t1167.html


Hi, thanks for the reply.
Yeah that solves the drawing of shapes part, the problem for me persists though since I want to be able to handle text and images in the same way with zooming and moving. I come from the flash world where this was very simple, you just add whatever you want to the scene and then you can zoom in any way you want and Flash calculates everything for you. It seems as this type of library doesnt exist yet for Android. However I found this type of functions in the webview but that view isnt really meant for what I am trying to achieve in the long run.

I have been looking at 3D engines aswell but its too much hassle and also cause its not a standard.

Ill keep on looking!

/Robert
illion
Freshman
Freshman
 
Posts: 6
Joined: Fri Mar 04, 2011 3:51 am

Top

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

Who is online

Users browsing this forum: No registered users and 3 guests