ImageEn, unit iexBitmaps

TIEMultiBitmap.RotateAll

TIEMultiBitmap.RotateAll


Declaration

procedure RotateAll(Angle: double; AntialiasMode: TIEAntialiasMode = ierFast; BackgroundColor: TColor = clWhite);


Description

Rotates all frames within the current image by the specified angle (negative or positive degrees counter-clockwise).

AntialiasMode specifies the anti-aliasing algorithm that is used to improve rotation quality (only used when angle is NOT 90, 180 or 270):
Value Description
ierNone No anti-aliasing (lowest quality)
ierFast Fast, but lower quality
ierBilinear Bilinear, high quality
ierBicubic Bicubic, highest quality

BackgroundColor specifies a background color to fill new regions (i.e. when not rotating at a 90 degree angle)


Anti-alias Modes





Examples

// Rotate all images in a TImageEnMView 90° clockwise (Note: AntialiasMode is irrelevant for 90 deg. rotates)
ImageEnMView1.IEMBitmap.RotateAll( 270 );

// Rotate a TIFF file 90° counter-clockwise;
MBitmap := TIEMultiBitmap.create;
MBitmap.Read( 'D:\Doc.Tiff' );
MBitmap.RotateAll( 90 );
MBitmap.Write( 'D:\Doc.Tiff' );
MBitmap.Free;

// Rotate the image 45° clockwise at highest quality with a white background color
MBitmap.RotateAll( 315, ierBicubic, clWhite );

// Rotate the image 180° clockwise
MBitmap.RotateAll( 180 );


See Also

 AngleToImageEnRotateAngle