ImageEn, unit iexHelperFunctions

IEFlipImageFile


Declaration

function IEFlipImageFile(const Filename: string;
                         JpegQuality: integer;
                         Direction: TFlipDir;
                         bCanUseLossless: Boolean = true
                         ): Boolean; overload;
function IEFlipImageFile(const sInFilename, sOutFilename: string;
                         JpegQuality: integer;
                         Direction: TFlipDir;
                         bCanUseLossless: Boolean = true
                         ): Boolean; overload;


Description

Calls Flip to Flip an image file and resave it (optionally to an alternative file). if bCanUseLossless is specified then JpegLosslessTransform2 is used where possible for JPEG files.

Note:
You must add the iexHelperFunctions unit to your uses clause
Delphi/C++ 2005 or newer is required


Example

// Flip an image horizontally and save to a JPEG
IEFlipImageFile('D:\Source.bmp', 'D:\MyImage.jpg', 90, fdHorizontal);

// Flip an image vertically. This will be lossless as source and destination are JPEG
IEFlipImageFile('D:\MyJPEG.jpg', 90, fdVertical);