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

FileNameThe EMF file to import
FontOptionsThe same font option value accepted by ImportEMFFromFileEx
UseGDIPlusEnables the GDI+ import path when nonzero
ColorImagesAsJPEGStores compatible color bitmap records with JPEG compression when nonzero
ProcessNullPathProcesses null-path records when nonzero
SmoothImagesEnables 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