Return horizontally an image
BlitzMax Forums/BlitzMax Beginners Area/Return horizontally an image| 
 | ||
| I need to return horizontally an image. but i don't want to use two images. Can someone help me ? | 
| 
 | ||
| Not sure what you mean but, if you want to view the same image but facing different directions you can use setrotation. <edit> or if you mean flip then use setscale with negative values. 
Graphics 640,480
image:timage=LoadImage("max.png")
MidHandleImage image
x=1 
y=1
While Not KeyHit(key_escape)
  Cls
  If KeyHit(key_left) x=-1
  If KeyHit(key_right) x=1
  If KeyHit(key_up) y=1
  If KeyHit(key_down) y=-1
  SetScale x,y
  DrawImage image,200,200
  Flip
  FlushMem()
Wend
 | 
| 
 | ||
| Thank you ! It's exactly that I Want ! |