ImportEMFFromStreamEx

Vector graphics

Description

Imports an EMF stream with extended import controls for bitmap fallback and GDI+ processing

Syntax

Delphi

Function TPDFlib.ImportEMFFromStreamEx(InStream: TStream; FontOptions, GeneralOptions, Options: Integer): Integer;

Parameters

InStreamEMF stream to import
FontOptionsFont handling mode used by the EMF importer
GeneralOptionsGeneral EMF import mode
OptionsBit 0 forces bitmap import, bit 1 recompresses EMF color images as JPEG where supported, bit 2 enables GDI+ null-path processing, and bit 3 enables GDI+ smoothing and high-quality interpolation

Return values

Returns the new ImageID, or 0 if the EMF cannot be imported

Remarks

The stream is read from its current position and the caller keeps stream ownership

See also

ImportEMFFromFileEx, ImportEMFFromFile, ImportEMFFromStream