TransformFile method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int TransformFile(AnsiString szNameSrc, AnsiString szNameDst, int iTransform, int nPage);

Delphi Syntax

Function TransformFile(szNameSrc: String; szNameDst: String; iTransform: Integer; nPage: Integer): Integer;

Overview

Refer to Examining and Altering Bitmaps

Remarks

Performs a lossless transformation for certain formats. Currently, only JPEG, CMP and JPEG TIFF formats are supported.

The flip and reverse flags can be combined with the rotate flags. More than one rotate flags cannot be combined.

Be careful when combining flags, because unexpected results are possible. For example, combining flip, reverse and 180 degree rotation produces a no-transform. Flip and reverse produce a 180 degree rotation which, when combined with another 180 degree rotation produces a 0 degree rotation (a no-transform).

The rotation transformations are performed before the flip/reverse operations.

See Also

Elements:

OnTransformMarker event, WriteMarker method, WriteMarkerAction property

Topics:

Raster Images: Doing Geometric Transformations