ImageEn, unit imageenio

TImageEnIO.LoadFromStreamRAW

TImageEnIO.LoadFromStreamRAW


Declaration

function LoadFromStreamRAW(Stream: TStream): Boolean;


Description

Loads an image from a stream containing a digital camera Raw file. The result will be false if an error is encountered, e.g. the file in the stream is not a RAW format (Aborting will be true).

Notes:
- You can abort loading by setting Aborting to true
- LoadFromStreamRAW does not reset the position of the stream, so you may need to first call Stream.Position := 0;
- You can configure the library that ImageEn uses to support Raw formats using CameraRawEngine


Example

// Set recommended defaults for RAW Loading
ImageEnView1.IO.Params.RAW_FourColorRGB := False;
ImageEnView1.IO.Params.RAW_QuickInterpolate := False;
ImageEnView1.IO.Params.RAW_UseAutoWB := True;
ImageEnView1.IO.Params.RAW_UseCameraWB := True;
ImageEnView1.IO.Params.RAW_AutoAdjustColors := False;
ImageEnView1.IO.Params.RAW_Gamma := 2.222;
ImageEnView1.IO.Params.RAW_GammaToeSlope := 4.5;
ImageEnView1.IO.Params.RAW_AutoBright := False;
ImageEnView1.IO.Params.RAW_OutputColorSpace := iercsSRGB;

ImageEnView1.IO.LoadFromStreamRAW( myStream );