ImageEn, unit iexHelperFunctions

TImageEnIO.LoadFromFileRawFast

TImageEnIO.LoadFromFileRawFast


Declaration


function LoadFromFileRawFast(const sFilename: string; iMaxX, iMaxY: integer): Boolean;


Description


Calls LoadFromFile to load a camera Raw image and allows you to specify a maximum size that you require an image so that it can be loaded as fast as possible, by using RAW_GetExifThumbnail, RAW_GetEmbeddedJpeg and RAW_HalfSize for Camera Raw files.
Returns True if loading was successful, or False on error


Example


// Load the image specified in an open dialog as fast as possible, but bigger than the displaying TImageEnView
ImageEnView1.AutoShrink := True;
ImageEnView1.IO.LoadFromFileRawFast(OpenPictureDialog1.FileName, ImageEnView1.Width, ImageEnView1.Height)