You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Creating, Loading & Closing GdPicture Image > CreateGdPictureImageFromDIB Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.CreateGdPictureImageFromDIB Method

Creates a new GdPicture Image from a Device Independent Bitmap handle (DIB).

C#
public int CreateGdPictureImageFromDIB(
    IntPtr Dib
);
Visual Basic
Public Function CreateGdPictureImageFromDIB(
    ByVal Dib As IntPtr
) As Integer
Parameters
Parameters 
Description 
Dib 
Pointer to a Microsoft® Windows® Graphics Device Interface (GDI) BITMAPINFO structure.  
Returns

0: The image could not created. Use the GetStat() function to determine the reason this function failed. 

Non-zero: GdPicture Image Identifier. The created image.

The Device Independent Bitmap (DIB) is the format which is used to store bitmaps in .bmp files. 

If success, set the created image as a GdPicture image.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.