ImportEMFFromFileEx
Vector graphics
Description
Imports an EMF file with extended import controls for bitmap fallback and GDI+ processing
Syntax
Delphi
Function TPDFlib.ImportEMFFromFileEx(Const FileName: WideString; FontOptions, GeneralOptions, Options: Integer): Integer;
Parameters
| FileName | EMF file to import |
|---|---|
| FontOptions | Font handling mode used by the EMF importer |
| GeneralOptions | General EMF import mode |
| Options | Bit 0 forces bitmap import, bit 1 recompresses EMF color images as JPEG where supported, bit 2 enables GDI+ null-path processing, and bit 3 enables GDI+ smoothing and high-quality interpolation |
Return values
Returns the new ImageID, or 0 if the EMF cannot be imported
Remarks
Use bit 0 when preserving complex GDI drawing exactly as a bitmap is more important than keeping vector commands editable
See also
ImportEMFFromStreamEx, ImportEMFFromFile, ImportEMFFromStream