Platforms to show: All Mac Windows Linux Cross-Platform

Back to Picture class.

Picture.HMirrorMBS as picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Graphics & Pictures MBS Picture Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Mirrors the picture horizontally (flip).
Example
// load picture
dim f as FolderItem = SpecialFolder.Desktop.Child("test.png")
dim p as PNGPictureMBS = f.OpenAsPNGMBS

// get parts
dim pic as Picture = p.Pict.HMirrorMBS
dim mask as Picture = p.mask.HMirrorMBS

// save as png
dim g as FolderItem = SpecialFolder.Desktop.Child("output.png")
call g.SaveAsPNGMBS(pic, mask, 0)

// now apply mask to show it
pic.Mask = mask
Backdrop = pic

This method returns a copy of the picture mirrored.
Returns nil on low memory.

Some examples using this method:

The items on this page are in the following plugins: MBS Picture Plugin.


The biggest plugin in space...