Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / GetDibFromGdPictureImage Method
A unique image identifier of the GdPicture image representing the image to export.





In This Topic
    GetDibFromGdPictureImage Method
    In This Topic
    Exports a specified GdPicture image to a DIB object, known as Device Independent Bitmap (DIB), as an IntPtr value. Please note that it is your responsibility to release the returned DIB object once you have no use for it.
    Syntax
    'Declaration
     
    
    Public Function GetDibFromGdPictureImage( _
       ByVal ImageID As Integer _
    ) As IntPtr
    public IntPtr GetDibFromGdPictureImage( 
       int ImageID
    )
    public function GetDibFromGdPictureImage( 
        ImageID: Integer
    ): IntPtr; 
    public function GetDibFromGdPictureImage( 
       ImageID : int
    ) : IntPtr;
    public: IntPtr GetDibFromGdPictureImage( 
       int ImageID
    ) 
    public:
    IntPtr GetDibFromGdPictureImage( 
       int ImageID
    ) 

    Parameters

    ImageID
    A unique image identifier of the GdPicture image representing the image to export.

    Return Value

    A pointer to a newly created DIB object, known as Device Independent Bitmap (DIB), as an IntPtr value, containing the specified GdPictureImage data. Please always use the GetStat method to determine if this method has been successful.
    Remarks
    We strongly recommend using the GetStat method to identify the specific reason for the method's failure.

    Be aware that you need to release the resulting DIB object with the ReleaseDib(Int32) method after being used.

    See Also