Skip to main content

ImageFlip

ImageFlip (Statement)​

Format​

imageflip image, horizontal
imageflip image, horizontal, vertical

Description​

Mirrors an image held in memory, in place. image is the identifier returned by ImageNew, ImageLoad, or ImageCopy.

  • horizontal — if true, the image is mirrored left-to-right.
  • vertical — if true, the image is mirrored top-to-bottom. If omitted, no vertical flip is applied.

Example​

a = imageload("arrow.png")
imageflip a, true # point the other way
imagedraw a, 0, 0

See Also​

ImageAutoCrop, ImageCentered, ImageCopy, ImageCrop, ImageDraw, ImageFlip, ImageHeight, ImageLoad, ImageNew, ImagePixel, ImageResize, ImageRotate, ImageSetPixel, ImageSmooth, ImageTransformed, ImageWidth, Unload

Availability​

BASIC-256 2.0 and later. Documented from the BASIC-256 v2.1 continuation project.