Flipping images

BlitzMax Forums/BlitzMax Beginners Area/Flipping images

WinterKnight(Posted 2005) [#1]
Is there any built-in way to flip the direction of an image post loading?

It appears that there is a command for rotation, but non for flipping vertically or horizontally?


Tiger(Posted 2006) [#2]
Use negative scale, like this:
Graphics 800,600
Local MyImage:TImage=CreateImage(32,32)
DrawText "test",0,0
Flip
GrabImage(MyImage,0,0)
Cls
SetScale(-1,1.0)
DrawImage(myimage,100,100)
Flip
WaitKey