Problem Flipping an Image

Started by RonTek, July 06, 2017, 09:56:59

Previous topic - Next topic

RonTek

Hi,

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

Scale -1,1

I tested an example here but still has no effect.

dawlane

#1
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

Xaron

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.

RonTek

Quote from: Xaron on July 06, 2017, 10:46:36
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! :)