ImageEn, unit imageenio

TImageEnIO.LoadFromFileDCX

TImageEnIO.LoadFromFileDCX


Declaration

function LoadFromFileDCX(const FileName: WideString): Boolean;


Description

Loads an image from a DCX file.

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

Notes:
- You can abort loading by setting Aborting to true
- You can set the page to load using Params.DCX_ImageIndex property.


Example

// I want the second page of 'input.dat' (which is a DCX file)
ImageEnView1.IO.Params.DCX_ImageIndex := 1;
ImageEnView1.IO.LoadFromFileDCX('C:\input.dat');


See Also

- LoadFromStreamDCX
- SaveToFileDCX
- InsertToFileDCX
- DCX_ImageIndex
- ImageCount
- DeleteDCXIm
- Global Image Methods