I have class that extends SurfaceView. Inside the onDraw method I have
several paths that draw a shape...what I want to know is how can I select
the image that the different paths create and move it around the screen.
Is there a way to combining all those path to a single object that I can
work with?
Here is part of my onDraw method:
Path theSymbol = new Path();
theSymbol.moveTo(0.0F, 0.0F);
theSymbol.lineTo(0.0F, 50.0F);
theSymbol.lineTo(16.666666F, 58.333332F);
theSymbol.lineTo(-16.666666F, 75.0F);
theSymbol.lineTo(16.666666F, 91.666664F);
theSymbol.lineTo(-16.666666F, 108.33333F);
theSymbol.lineTo(16.666666F, 124.99999F);
theSymbol.lineTo(-16.666666F, 141.66666F);
theSymbol.lineTo(0.0F, 150.0F);
theSymbol.lineTo(0.0F, 200.0F);
theSymbol.offset(100F, 20.0F);
canvas.drawPath(theSymbol, paint);
I would really appreciate if someone can point me in the right
direction...as I have been searching for weeks and I can't find a concrete
method to do this.
Thanks in advance,
0gravity.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en