FreeImage.NET Class Library Reference
FreeImageAllocateT Method (FREE_IMAGE_TYPE, Int32, Int32, Int32, UInt32, UInt32, UInt32) |
Creates a new bitmap in memory.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP AllocateT( FREE_IMAGE_TYPE type, int width, int height, int bpp, uint red_mask, uint green_mask, uint blue_mask )
Parameters
- type
- Type: FreeImageAPIFREE_IMAGE_TYPE
Type of the image. - width
- Type: SystemInt32
Width of the new bitmap. - height
- Type: SystemInt32
Height of the new bitmap. - bpp
- Type: SystemInt32
Bit depth of the new Bitmap. Supported pixel depth: 1-, 4-, 8-, 16-, 24-, 32-bit per pixel for standard bitmap - red_mask
- Type: SystemUInt32
Red part of the color layout. eg: 0xFF0000 - green_mask
- Type: SystemUInt32
Green part of the color layout. eg: 0x00FF00 - blue_mask
- Type: SystemUInt32
Blue part of the color layout. eg: 0x0000FF
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
See Also