ImportEMFFromStream
Vector graphics, Image handling
Description
Adds a WMF or EMF image from a TStream to the selected document
Once an image has been added to the document it can be drawn on any page multiple times without further increasing the size of the PDF file
Vector import starts with the default black pen and white brush unless the metafile selects other objects. Polylines remain open and use the selected pen; inside a path bracket each polyline starts an independent figure and is painted only when the path is drawn
Syntax
Delphi
Function TPDFlib.ImportEMFFromStream(InStream: TStream; FontOptions, GeneralOptions: Integer): Integer;
Parameters
| InStream | The TStream object containing the EMF/WMF data |
|---|---|
| FontOptions | If GeneralOptions is 1 this parameter is ignored, otherwise the following values take effect: 0 = Use the first font added to the PDF 1 = Automatically add fonts as non-embedded TrueType fonts 0 = Import as a vector image 1 = Import as a bitmap image |
| GeneralOptions |