GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / CreateGdPictureImageFromBitmap Method
A System.Drawing.Bitmap object that contains the image data to load. This object must be initialized with the proper image data and it must be disposed of by the user as well.





In This Topic
CreateGdPictureImageFromBitmap Method (GdPictureImaging)
In This Topic
Creates a new GdPicture image from an image data stored in a System.Drawing.Bitmap object. 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.

Syntax
'Declaration
 
Public Function CreateGdPictureImageFromBitmap( _
   ByVal Bm As Bitmap _
) As Integer
public int CreateGdPictureImageFromBitmap( 
   Bitmap Bm
)
public function CreateGdPictureImageFromBitmap( 
    Bm: Bitmap
): Integer; 
public function CreateGdPictureImageFromBitmap( 
   Bm : Bitmap
) : int;
public: int CreateGdPictureImageFromBitmap( 
   Bitmap* Bm
) 
public:
int CreateGdPictureImageFromBitmap( 
   Bitmap^ Bm
) 

Parameters

Bm
A System.Drawing.Bitmap object that contains the image data to load. This object 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.

Remarks
It is recommend to use the GetStat method to identify the specific reason for the method's failure, if any.

This method requires the Image Documents component to run.

See Also