CreateGdPictureImageFromMetaFile(String,Single) Method
In This Topic
Creates a new GdPicture image based on a metafile image file and scaling it by multiplying the image size by a
specified factor.
Syntax
'Declaration
Public Overloads Function CreateGdPictureImageFromMetaFile( _
ByVal As String, _
ByVal As Single _
) As Integer
public int CreateGdPictureImageFromMetaFile(
string ,
float
)
public function CreateGdPictureImageFromMetaFile(
: String;
: Single
): Integer;
public function CreateGdPictureImageFromMetaFile(
: String,
: float
) : int;
public: int CreateGdPictureImageFromMetaFile(
string* ,
float
)
public:
int CreateGdPictureImageFromMetaFile(
String^ ,
float
)
Parameters
- FilePath
- The path of the file to open. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
- ScaleBy
- Multiplies the image size by a specified factor.
Return Value
0: The image could not be created. Use the GetStat() method to determine the reason this method
failed.
Non-zero: GdPicture image identifier. The created image. The ReleaseGdPictureImage() method must be subsequently used to release the image from the memory.
See Also