ImageEn, unit iexHelperFunctions

JPEGLosslessFlipFile

JPEGLosslessFlipFile


Declaration


function JPEGLosslessFlipFile(const sInFilename : WideString; const sOutFilename : WideString; Direction: TFlipDir) : Boolean; overload;
function JPEGLosslessFlipFile(const sFilename : WideString; Direction: TFlipDir) : Boolean; overload;


Description


Calls JpegLosslessTransform or JpegLosslessTransform2 to losslessly flip a JPEG image.

Note: All comments and markers are copied and the EXIF orientation and thumbnail are updated.


Example


// Flip MyImage.jpeg horizontally
JPEGLosslessRotateFile('D:\MyImage.jpeg', fdHorizontal);