how to turn an image sideways or upside-down?
<p>I have a custom view and i am using onDraw() to draw onto my canvas. I am drawing an image on this canvas.</p>

<p>I want to turn the image upside down kinda like flip on a horizontal line as a reference. This is not the same as rotating the image by 180 deg or -180 deg.</p>

<p>Likewise, i want to mirror or flip sidways i.e with a vertical line as it's pivot or reference. Again this is not the same as the canvas.rotate() provides.</p>

<p>I am wondering how to do it. Should i use a matrix or does canvas provide any method to do it like that of a "rotate".</p>

<p>Thanks.</p>
