ImportEMFFromFileAdvanced
Images
Description
Imports an EMF file as an image resource while exposing common import flags as named integer parameters
Syntax
Delphi
Function TPDFlib.ImportEMFFromFileAdvanced(Const FileName: WideString; FontOptions, UseGDIPlus, ColorImagesAsJPEG, ProcessNullPath, SmoothImages: Integer): Integer;
Parameters
| FileName | The EMF file to import |
|---|---|
| FontOptions | The same font option value accepted by ImportEMFFromFileEx |
| UseGDIPlus | Enables the GDI+ import path when nonzero |
| ColorImagesAsJPEG | Stores compatible color bitmap records with JPEG compression when nonzero |
| ProcessNullPath | Processes null-path records when nonzero |
| SmoothImages | Enables image smoothing where the importer supports it |
Return values
Returns the new ImageID, or 0 when the EMF cannot be imported
Remarks
The helper maps the named parameters to the existing advanced EMF option bitmask used by ImportEMFFromFileEx