ImportEMFFromStreamAdvanced

Images

Description

Imports EMF data from a stream as an image resource while exposing common import flags as named integer parameters

Syntax

Delphi

Function TPDFlib.ImportEMFFromStreamAdvanced(InStream: TStream; FontOptions, UseGDIPlus, ColorImagesAsJPEG, ProcessNullPath, SmoothImages: Integer): Integer;

Parameters

InStreamThe EMF stream to import
FontOptionsThe same font option value accepted by ImportEMFFromStreamEx
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 stream cannot be imported

Remarks

The stream overload is useful for report exporters and web pipelines that already keep EMF output in memory