ImageEn, unit iexHelperFunctions

IEConvertImageFile

IEConvertImageFile


Declaration


function IEConvertImageFile(const sInFilename, sOutFilename: string;
                            iJpegQuality: Integer;
                            bAutoAdjustOrientation: Boolean = False
                            ): Boolean;


Description


Change the format of a file (e.g. from BMP to JPEG). Specify the JPEG_Quality if sOutFilename is a JPEG. Returns False if an error was encountered.


Example


// Convert MyImage.jpeg to a BMP file
IEConvertImageFile('D:\MyImage.jpeg', 'D:\MyImage.bmp', 90);