'Declaration
Public Overloads Function CreateGdPictureImageFromHICON( _ ByVal hicon As IntPtr _ ) As Integer
public int CreateGdPictureImageFromHICON( IntPtr hicon )
public function CreateGdPictureImageFromHICON( hicon: IntPtr ): Integer;
public function CreateGdPictureImageFromHICON( hicon : IntPtr ) : int;
public: int CreateGdPictureImageFromHICON( IntPtr hicon )
public: int CreateGdPictureImageFromHICON( IntPtr hicon )
Parameters
- hicon
- A Windows handle to an icon, as an IntPtr 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 GetStat method to determine if this method has been successful.
Be aware that you need to release the image with the ReleaseGdPictureImage method after being used.