ImportEMFFromFileOptionalAdvanced
Images, Content streams and optional content groups
Description
Imports an EMF file with named advanced import options and assigns the resulting image resource to an optional content group
Syntax
Delphi
Function TPDFlib.ImportEMFFromFileOptionalAdvanced(Const FileName: WideString; OptionalContentGroupID, FontOptions, UseGDIPlus, ColorImagesAsJPEG, ProcessNullPath, SmoothImages: Integer): Integer;
Parameters
| FileName | The EMF file to import |
|---|---|
| OptionalContentGroupID | The optional content group that owns the imported image resource |
| FontOptions | The same font option value accepted by ImportEMFFromFileOptionalEx |
| 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 or the optional content group is invalid
Remarks
Use this overload when imported report graphics must be controlled by layer visibility or print/export policies