TransformFile method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short TransformFile(BSTR pszNameSrc, BSTR pszNameDst, TransformFileConstants Transform, long lPage);

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:

TransformMarker event, WriteMarker method, WriteMarkerAction property

Topics:

Raster Images: Doing Geometric Transformations