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
| InStream | The EMF stream to import |
|---|---|
| FontOptions | The same font option value accepted by ImportEMFFromStreamEx |
| 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 stream cannot be imported
Remarks
The stream overload is useful for report exporters and web pipelines that already keep EMF output in memory