CreateGdPictureImageFromDIB(Int32) Method
Creates a new GdPicture image from an instantiated Device Independent Bitmap (DIB) handle provided as an integer value.
The newly created image is identified by its unique non-zero image identifier.
Please note that it is your responsibility to release the image resources once you have no use for them.
public int CreateGdPictureImageFromDIB(
int
)
public function CreateGdPictureImageFromDIB(
: Integer
): Integer;
public function CreateGdPictureImageFromDIB(
: int
) : int;
public: int CreateGdPictureImageFromDIB(
int
)
public:
int CreateGdPictureImageFromDIB(
int
)
'Declaration
Public Overloads Function CreateGdPictureImageFromDIB( _
ByVal As Integer _
) As Integer
Parameters
- Dib
- A pointer to a Microsoft® Windows® Graphics Device Independent Bitmap (DIB) handle, as an integer value.
This pointer must be initialized with the proper image data and it must be disposed of by the user as well.
Return Value
A unique image identifier of the GdPicture image representing the newly created image. The returned value is non-zero if the image is successfully created. Please first of all use the
GdPictureImaging.GetStat method to determine if this method has been successful.
Be aware that you need to release the image with the GdPictureImaging.ReleaseGdPictureImage method after being used.