'Declaration
Public Overloads Function CreateNewGdPictureImage( _ ByVal Width As Integer, _ ByVal Height As Integer, _ ByVal PixelFormat As PixelFormat, _ ByVal BackColor As Color _ ) As Integer
public int CreateNewGdPictureImage( int Width, int Height, PixelFormat PixelFormat, Color BackColor )
public function CreateNewGdPictureImage( Width: Integer; Height: Integer; PixelFormat: PixelFormat; BackColor: Color ): Integer;
public function CreateNewGdPictureImage( Width : int, Height : int, PixelFormat : PixelFormat, BackColor : Color ) : int;
public: int CreateNewGdPictureImage( int Width, int Height, PixelFormat PixelFormat, Color BackColor )
public: int CreateNewGdPictureImage( int Width, int Height, PixelFormat PixelFormat, Color BackColor )
Parameters
- Width
- The width, in pixels, of the newly created image.
- Height
- The height, in pixels, of the newly created image.
- PixelFormat
- A member of the PixelFormat enumeration. The required pixel format of the newly created image.
- BackColor
- A color object that defines the background color of the newly created image. This parameter is ignored for indexed bitmap. You can obtain a suitable color using the one of the ARGB() overloads.
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 resource with the ReleaseGdPictureImage method after being used.