[android-developers] Re: drawBitmap Flip, Scale and Translate

2013-08-17 Thread decode
Anyone ? On Saturday, August 10, 2013 9:56:24 PM UTC+5:30, decode wrote: I have my code as below : canvas.drawBitmap(bitmap, src, dest,p); (p is null. using default paint, src is null aswell) src and dest are Rect I am trying to flip the bitmap horizontally by using canvas.scale as

[android-developers] Re: drawBitmap Flip, Scale and Translate

2013-08-17 Thread Nobu Games
Keep in mind that the origin of a bitmap draw operation is the upper left corner of the bitmap. So is the origin of canvas (unless you change it with a transformation matrix). When you tell canvas to render everything flipped horizontally and draw the bitmap on the canvas at (0;0) the bitmap