Ooops
May 30, 2020, 03:18:59 AM

Author Topic: Problem Flipping an Image  (Read 1301 times)

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Problem Flipping an Image
« on: July 06, 2017, 09:56:59 AM »
Hi,

Does the scaling technique works in Monkey-X when flipping an image like in Blitzmax?

Code: [Select]
Scale -1,1
I tested an example here but still has no effect.

Offline dawlane

  • Full Member
  • ***
  • Posts: 148
Re: Problem Flipping an Image
« Reply #1 on: July 06, 2017, 10:12:16 AM »
Scale has more to do with using a Matrix.
If you need to flip an image use one of the draw functions.
http://www.monkey-x.com/Community/posts.php?topic=12830&post=126434&view=all#126434

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 295
Re: Problem Flipping an Image
« Reply #2 on: July 06, 2017, 10:46:36 AM »
You can apply that scale factor to the DrawImage command. In that case you don't have to hassle with matrices at all and it works with negative values for flipping.

Offline RonTek

  • Sr. Member
  • ****
  • Posts: 357
Re: Problem Flipping an Image
« Reply #3 on: July 06, 2017, 11:23:49 AM »
You can apply that scale factor to the DrawImage command. In that case you don't have to hassle with matrices at all and it works with negative values for flipping.

Ah thanks Martin, I got it now and that works! :)

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal