Visit Gigasoft's Web Site
 ProEssentials v9 Help

MetafileToFile

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

 

public int PeFunction.Image.MetafileToFile ( int width, int height, string fileName )

Parameter

Description

width

Width in 1/100th millimeters

height

Height in 1/100th millimeters

fileName

Name of file to create.

 

This function places the current image, in the form of a WMF, into the file identified with fileName. To insure image quality, the aspect ratio (width/height) must be between 0.333 and 10.0.

 

It is recommended that ExportImageDPI or DpiX/DpiY is non-zero.

 

The metafile created is a standard metafile, not an enhanced metafile. Standard metafiles do not support 32 bit colors so RenderEngine is set to Gdi when building the image for metafile export. Also BitmapGradientMode is best set to False, or bitmap/gradient sections will show as transparent within the created metafile. Also, standard metafiles do not support Unicode strings, if using a double byte character set, see WideCharToMultiByte and CodePage properties.

 

Returns

Non-zero if successful, else zero.

 

Comments

PeFunction.Image.MetafileToFile members of Pego.PeFunction.Image, Pesgo.PeFunction.Image, Pe3do.PeFunction.Image, Pepso.PeFunction.Image, Pepco.PeFunction.Image