ImageFlip
Last updated
Was this helpful?
Was this helpful?
// Flip an image horizontally (mirror)
img = ImageFlip( myImage, "horizontal" );
// Flip vertically
img = ImageFlip( myImage, "vertical" );
// Rotate 90 degrees clockwise
img = ImageFlip( myImage, "90" );
// Transpose along diagonal
img = ImageFlip( myImage, "diagonal" );
// As a member function (chainable)
myImage.flip("horizontal")
.flip("vertical"); // Results in 180-degree rotation