CreateNew(Width: Integer; Height: Integer; PixelFormat: GxPixelFormat): IGxBitmap;
Width - image width.
Height - image height.
PixelFormat - pixel format.
The CreateNew method creates a new bitmap with the specified parameters.
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: