ImageEn, unit iexHelperFunctions

IEConvertImageFile


Declaration

function IEConvertImageFile(const sInFilename, sOutFilename: string;
                            JpegQuality: Integer;
                            AutoAdjustOrientation: 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.

Note: You must add the iexHelperFunctions unit to your uses clause


Example

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