ImageEn, unit imageenio

TImageEnIO.LoadFromFileRAW

TImageEnIO.LoadFromFileRAW


Declaration

function LoadFromFileRAW(const FileName: WideString): Boolean;


Description

Loads an image from a Digital Camera Raw file.

FileName is the file name including extension.
Result will be false if the file is not a camera RAW format (and Aborting will be true). Loading errors due to a file not being available will raise an exception.

You can configure the library that ImageEn uses to support Raw formats using CameraRawEngine


Demo

Demo  Demos\InputOutput\CameraRaw\CameraRaw.dpr


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.LoadFromFile('C:\CRW_0001.CRW');