IGxImage.RotateFlip

Syntax

RotateFlip(RotateFlipType: GxRotateFlipType);

Parameters

RotateFlipType. Rotation and flip type.

Description

The RotateFlip method rotates and flips the image.

Example

Executing the example requires a form with the Button1 button and two ImageBox components named ImageBox1 and ImageBox2. An image is loaded to ImageBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Image: IGxImage;
Begin
    Image := ImageBox1.Image;
    Image.RotateFlip(GxRotateFlipType.Rotate180FlipX);
    ImageBox2.Image := Image;
End Sub Button1OnClick;

On clicking the button the component named ImageBox2 contains the image contained in the component named ImageBox1 that is rotated 180 degrees clockwise and flipped horizontally.

See also:

IGxImage