On Fri, Mar 4, 2011 at 3:23 PM, lbendlin <lutz@bendlin.us> wrote:
@Override
protected void dispatchDraw(Canvas canvas) {
canvas.save(Canvas.MATRIX_SAVE_FLAG);
super.dispatchDraw(canvas);
Log.v("This",""+getWidth());
canvas.scale(-1f,1f, getWidth() * 0.5f, getHeight() * 0.5f);
canvas.restore();
}
Shouldn't you be drawing *after* scaling the canvas? To apply the rendering to the transformed matrix?
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
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