User Tools

Site Tools


imagerotateflip.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== ImageRotateFlip ( Input image, Output image, RotateFlipType) ====== Previous pageReturn to chapter overviewNext page

ImageRotateFlip ( fileNameIn, [fileNameOut] )

blk2blue.jpg

====== ImageRotateFlip ====== Apply rotation and/or flip and save the result in a new file
fileNameIn the name of the input image file
fileNameOut the name of the output image file
RotateFlipType Type of rotation to by applied to the output image (Equate of type RotateFlipType:)

Apply rotation and/or flip to any existing image file and save the result in a new file.

The RotateFlipType parameter is a set of EQUATES (found in ClaRunExt.inc):

RotateFlipType:RotateNoneFlipNone   EQUATE(0)!Specifies no clockwise rotation and no flipping.

RotateFlipType:Rotate90FlipNone         EQUATE(1)!Specifies a 90-degree clockwise rotation without flipping.

RotateFlipType:Rotate180FlipNone    EQUATE(2)!Specifies a 180-degree clockwise rotation without flipping.

RotateFlipType:Rotate270FlipNone    EQUATE(3)!Specifies a 270-degree clockwise rotation without flipping.

RotateFlipType:RotateNoneFlipX          EQUATE(4)!Specifies no clockwise rotation followed by a horizontal flip.

RotateFlipType:Rotate90FlipX            EQUATE(5)!Specifies a 90-degree clockwise rotation followed by a horizontal flip.

RotateFlipType:Rotate180FlipX           EQUATE(6)!Specifies a 180-degree clockwise rotation followed by a horizontal flip.

RotateFlipType:Rotate270FlipX           EQUATE(7)!Specifies a 270-degree clockwise rotation followed by a horizontal flip.

RotateFlipType:RotateNoneFlipY          EQUATE(8)!Specifies no clockwise rotation followed by a vertical flip.

RotateFlipType:Rotate90FlipY            EQUATE(9)!Specifies a 90-degree clockwise rotation followed by a vertical flip.

RotateFlipType:Rotate180FlipY           EQUATE(10)!Specifies a 180-degree clockwise rotation followed by a vertical flip.

RotateFlipType:Rotate270FlipY           EQUATE(11)!Specifies a 270-degree clockwise rotation followed by a vertical flip.

RotateFlipType:RotateNoneFlipXY         EQUATE(12)!Specifies no clockwise rotation followed by a horizontal and vertical flip.

RotateFlipType:Rotate90FlipXY           EQUATE(13)!Specifies a 90-degree clockwise rotation followed by a horizontal and vertical flip.

RotateFlipType:Rotate180FlipXY          EQUATE(14)!Specifies a 180-degree clockwise rotation followed by a horizontal and vertical flip.

RotateFlipType:Rotate270FlipXY          EQUATE(15)!Specifies a 270-degree clockwise rotation followed by a horizontal and vertical flip.

Requirements:

Create an instance of the ClaRunExtClass to call its methods.

distribute ClaRunExt.dll (requires that .Net 3.5 or higher is installed on target machines)

Example:

PROGRAM

MAP

END

INCLUDE('ClaRunExt.inc'),ONCE

MyClaRun        ClaRunextClass        !create instance of ClaRunExtClass

CODE

ImageRotateFlip('Lawnmower.bmp', 'CarFlipped.png', RotateFlipType:Rotate180FlipNone)        !creates CarFlipped.png

See Also:

imagerotateflip.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1