Tuesday, August 31, 2010

[android-developers] Re: Canvas and its transformation matrix have different translation values

On Aug 31, 9:05 pm, Romain Guy <romain...@android.com> wrote:
> The matrix returned by the Canvas is the sum of all transformations to
> the point your view is being drawn. There's a single Canvas for all
> Views on screen.

Thing is, I'm drawing directly on the onDraw() method of my custom
View, the only View used by my activity and directly set on screen by
the 'setContentView()' method on the activity.

There is no other view being drawn.

I may have misunderstood you, but in this case the transformation
matrix should have its Y-axis translation nullified. Is it not so?


--J

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment