Lucee object methods reference

Object Method Image.flip

Transforms an image by flipping or rotating it along specified axes. This operation modifies the original image in place.
Image.flip([string transpose]):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
transpose string  No vertical The type of transformation to apply:
  • vertical: Mirrors the image top-to-bottom (default)
  • horizontal: Mirrors the image left-to-right
  • diagonal: Flips across top-left to bottom-right diagonal with rotation
  • antidiagonal: Flips across top-right to bottom-left diagonal with rotation
  • 90: Rotates clockwise by 90 degrees
  • 180: Rotates by 180 degrees
  • 270: Rotates clockwise by 270 degrees (same as -90)