ImageEn, unit iexHelperFunctions

IEFlipImageFile

IEFlipImageFile


Declaration


function IEFlipImageFile(const sFilename : string;
                         iJpegQuality : integer;
                         Direction: TFlipDir;
                         bCanUseLossless: Boolean = true
                         ): Boolean; overload;
function IEFlipImageFile(const sInFilename, sOutFilename : string;
                         iJpegQuality : 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.


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);