ImageEn, unit imageenio

TImageEnIO.LoadFromFilePSD

TImageEnIO.LoadFromFilePSD


Declaration


function LoadFromFilePSD(const FileName: WideString): Boolean;


Description


Loads an image from an Adobe PSD file.

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

PSD files can contain multiple layers. To load separated layers:
ImageEnView1.IO.Params.PSD_LoadLayers := True;
ImageEnView1.IO.LoadFromFilePSD(filename);


To load only the merged/flattened image (default method):
ImageEnView1.IO.Params.PSD_LoadLayers := False;
ImageEnView1.IO.LoadFromFilePSD(filename);


Note: You can abort loading by setting Aborting to true


Example


ImageEnView1.IO.Params.PSD_LoadLayers := True;
ImageEnView1.IO.LoadFromFilePSD('C:\input.psd');