CreateImageFromMetaFile Method

See Also     Examples     Applies To

Creates a new GdPicture Image based on a metafile image file.

Syntax

object.CreateImageFromMetaFile (sFilePath, nScaleBy)

The CreateImageFromMetaFile syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
sFilePath Required. String. The path of the file to open.
nScaleBy Optional. Single. Default value is 1. Multiplies the image size by a specified factor.

Returns

Long.
0: The image could not created. Use the GetStat() function to determine the reason this function failed.
Non-zero: GdPicture Image handle. Handle of the created image.

Remarks

If success, set the created image as the native GdPicture image.
Supported formats are EMF and WMF

Category

Load, Import & Create an image





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.