IGxBitmapClass.CreateNew

Syntax

CreateNew(Width: Integer; Height: Integer; PixelFormat: GxPixelFormat): IGxBitmap;

Parameters

Width - image width.

Height - image height.

PixelFormat - pixel format.

Description

The CreateNew method creates a new bitmap with the specified parameters.

Example

Sub Main;

Var

Bitmap: IGxBitmap;

Begin

Bitmap:=GxBitmap.CreateNew(640,480,GxPixelFormat.Unknown);

End Sub Main;

After executing the example the Bitmap variable contains the new bitmap.

See also:

IGxBitmapClass