You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Creating, Loading & Closing GdPicture Image > CreateNewGdPictureImage > CreateNewGdPictureImage Method (Integer, Integer, Short, Color)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.CreateNewGdPictureImage Method (Integer, Integer, Short, Color)

Creates a new empty GdPicture Image.

C#
public int CreateNewGdPictureImage(
    int Width, 
    int Height, 
    Short BitDepth, 
    Color BackColor
);
Visual Basic
Public Function CreateNewGdPictureImage(
    ByVal Width As Integer, 
    ByVal Height As Integer, 
    ByVal BitDepth As Short, 
    ByVal BackColor As Color
) As Integer
Parameters
Parameters 
Description 
Width 
The width in pixel of the image.  
Height 
The height in pixel of the image.  
BitDepth 
Bit depth of the image.  
BackColor 
Color Object. You can build a Color Object using the ARGB() function. Background color of the image. This parameter is ignored for indexed bitmap.  
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.

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.