Creates a new bitmap in memory.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FIBITMAP Allocate(
	int width,
	int height,
	int bpp
)
Visual Basic (Declaration)
Public Shared Function Allocate ( _
	width As Integer, _
	height As Integer, _
	bpp As Integer _
) As FIBITMAP
Visual C++
public:
static FIBITMAP Allocate(
	int width, 
	int height, 
	int bpp
)

Parameters

width
Type: System..::.Int32
Width of the new bitmap.
height
Type: System..::.Int32
Height of the new bitmap.
bpp
Type: System..::.Int32
Bit depth of the new Bitmap. Supported pixel depth: 1-, 4-, 8-, 16-, 24-, 32-bit per pixel for standard bitmap

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.13.0, 3.13.1

See Also