Thank you, for your response. I'm sorry, I've removed my last post. Actually it doesn't work. You see, if you'll define a new matrix and set it up for the canvas, everything will be moved up by 100 pixels. And that is not, what I expected. It seems, that the only option is to draw the line on a Bitmap and draw the bitmap after all. A single bitmap can be drawn with transformation matrix, but not a single shape. Guys, if you have some other ideas, how it could be done without using OpenGL, please, let me know. Thank you.
On Tuesday, September 11, 2012 9:32:30 PM UTC+3, bob wrote: > > Use this to reset the canvas after drawing your one > rotated/scaled/whatever object: > > > canvas.setMatrix(new Matrix()); > > On Tuesday, September 11, 2012 1:18:53 PM UTC-5, NikDmit wrote: >> >> Hello. >> >> Since it's very possible to apply rotation and translation to the entire >> canvas and Bitmap's object, I have a question, is it possible, without >> using OpenGL, to apply rotation and translation only for one element on the >> canvas? Let's say, I draw line and circle and I want to apply translation >> only for the line, not for the entire view. With concat method of the >> Canvas the entire view will be changed(translated or rotated). >> >> Thank you for your answers beforehand. >> > -- 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

