CreateImageFromHBitmap Method

See Also     Examples     Applies To

Creates a new GdPicture Image from an hBitmap handle.

Syntax

object.CreateImageFromHBitmap (hBitmap)

The CreateImageFromHBitmap syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
hBitmap Required. Long. Handle to a GDI bitmap.

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.

Category

Load, Import & Create an image





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.