Hi Nigel,
thank you for the hint!
Fortunately, there is also a ReadFunction:
procedure TForm1.btnLoadFormatsClick(Sender: TObject);
// Add all image formats that image can read from
var
i: Integer;
fmt: iexBitmaps.TIEFileFormatInfo;
LoadFormatsList: string;
begin
for i := 0 to iesettings.IEGlobalSettings().FileFormatCount - 1 do
begin
fmt := iesettings.IEGlobalSettings().FileFormat[i];
if @fmt.ReadFunction <> nil then // Can load?
LoadFormatsList := LoadFormatsList + fmt.FullName + ' (' + fmt.Extensions + ')' + #13#10;
end;
CodeSite.Send('TForm1.btnLoadFormatsClick: LoadFormatsList', LoadFormatsList);
end;
With this function, I could retrieve all formats ImageEn can read from:
TIFF Image (TIFF;TIF;FAX;G3N;G3F;XIF)
GIF Image (GIF)
JPEG Image (JPEG;JPG;JPE;JIF;JFIF)
PaintBrush (PCX)
Windows Bitmap (BMP;DIB;RLE)
Raw Bitmap ()
Windows Icon (ICO)
Windows Cursor (CUR)
Portable Network Graphics (PNG)
DICOM Medical Image (DICOM;DCM;DIC;V2)
Windows Metafile (WMF)
Enhanced Metafile (EMF)
Targa Image (TARGA;TGA;VDA;ICB;VST;PIX)
Portable Pixmap (PXM;PPM;PGM;PBM)
Wireless Bitmap (WBMP)
JPEG2000 (JP2)
JPEG2000 Code Stream (J2K;JPC;J2C)
Adobe PDF (PDF)
Multipage PCX (DCX)
Camera Raw Image (CRW;CR2;CR3;DNG;NEF;RAW;RAF;X3F;ORF;SRF;MRW;DCR;BAY;PEF;SR2;ARW;KDC;MEF;3FR;K25;ERF;CAM;CS1;DC2;DCS;FFF;MDC;MOS;NRW;PTX;PXN;RDC;RW2;RWL;IIQ;SRW)
Photoshop PSD (PSD;PSB)
Vector Objects File (IEV)
Vector Advanced File (ALL)
ImageEn Layers (IEN;IMAGEEN;LYR)
Microsoft HD Photo (WDP;HDP;JXR)
DirectDraw Surface (DDS)
High Efficiency Image File (HEIC;HEIF;HEICS;AVCS;HEIFS)
WebP (WEBP)
Other Windows Images ()
However, there are 2 entries that are unclear:
"Raw Bitmap ()"
"Other Windows Images ()"
These have no fmt.Extensions.