ImageEn, unit iexBitmaps

IEFileFormatAdd


Declaration

procedure IEFileFormatAdd(FileFormatInfo: TIEFileFormatInfo);


Description

Adds a new file format to ImageEn. The object FileFormatInfo specifies file format information and read/write functions.

Note: You do not need to free the FileFormatInfo object.


Demo

Demo  Demos\InputOutput\FileFormatPlugins\FPlug.dpr


Example

var
  FileFormatInfo: TIEFileFormatInfo;
begin
  FileFormatInfo := TIEFileFormatInfo.Create;
  with FileFormatInfo do
  begin
    FileType      := ioUNC;
    FullName      := 'Uncompressed Bitmap';
    Extensions    := 'unc;ucp';
    ReadFunction  := ReadUNC;
    WriteFunction := WriteUNC;
    TryFunction   := TryUNC;
    CountFunction := nil; // UNC images will only contain one frame
  end;
  IEFileFormatAdd(FileFormatInfo);
end;