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 layers separately, enable PSD_LoadLayers:

ImageEnView1.IO.Params.PSD_LoadLayers := True;
ImageEnView1.IO.Params.PSD_ReplaceLayers := 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
If PSD_LoadLayers is enabled, all layers are loaded as image layers, i.e. text and other type layers will become image layers


Example

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


See Also

PSD_LoadLayers
PSD_ReplaceLayers
LoadFromStreamPSD
LayersImport