minus scale ?

Monkey Targets Forums/XNA/minus scale ?

slenkar(Posted 2011) [#1]
On every other platform when you do scale(-1,1) it draws an image mirrored right-to-left
I just wondered if it does the same thing on this platform?


Volker(Posted 2012) [#2]
It was hard for me to find this, so
for all searching this stuff via forum search:

To mirror an image at the vertical axis: Use Scale(-scale,scale)
To mirror an image at the horizontal axis: Use Scale(scale,-scale)
Both: Use Scale(-scale,-scale)

Do this before you call DrawImage().

And yes, it works on XNA.