ImageEn, unit iexHelperFunctions |
|
TIEBitmap.IELoadFromFile
Declaration
function IELoadFromFile(const Filename : string; IOParams: TIOParams = nil; ImageIndex: Integer = 0): Boolean;
Description
Allows a TIEBitmap to load any format supported by ImageEn.
You can optionally pass an
TIOParams object for the I/O parameters of the file. The index of an image to load within a multiframe format can also be specified.
Returns True if loading was successful, or False on error
Note: Unlike
Read, IELoadFromStream will use
TIEWicReader for better performance where possible
Example
// Load the image specified in an open dialog
ImageEnView1.IEBitmap.IELoadFromFile(OpenPictureDialog1.FileName)