ImageEn, unit iexHelperFunctions |
|
TImageEnIO.LoadFromStreamEx
Declaration
function LoadFromStreamEx(Stream: TStream; FileType: TIOFileType = 0; AutoAdjustOrientation: Boolean; ImageIndex : Integer = -1): Boolean;
Description
Calls
LoadFromStream, optionally setting
EnableAdjustOrientation to automatically re-orient JPEG camera images and
ImageIndex to display a specific image.
If you know the
FileType type of the stream, pass it to speed up loading.
Returns True if loading was successful, or False on error
Example
// Load the third page of a TIFF stream
ImageEnView1.IO.LoadFromStreamEx(MyStream, False, 2);