BITMAP Structure |
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
[SerializableAttribute] public struct BITMAP
The BITMAP type exposes the following members.
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
bmBits |
Pointer to the location of the bit values for the bitmap.
The bmBits member must be a long pointer to an array of character (1-byte) values.
| |
bmBitsPixel |
Specifies the number of bits required to indicate the color of a pixel.
| |
bmHeight |
Specifies the height, in pixels, of the bitmap. The height must be greater than zero.
| |
bmPlanes |
Specifies the count of color planes.
| |
bmType |
Specifies the bitmap type. This member must be zero.
| |
bmWidth |
Specifies the width, in pixels, of the bitmap. The width must be greater than zero.
| |
bmWidthBytes |
Specifies the number of bytes in each scan line. This value must be divisible by 2,
because the system assumes that the bit values of a bitmap form an array that is word aligned.
|
Scans are organized as follows for a monochrome bitmap of height n:
Scan 0 Scan 1 . . . Scan n-2 Scan n-1
The pixels on a monochrome device are either black or white. If the corresponding bit in the bitmap is 1, the pixel is set to the foreground color; if the corresponding bit in the bitmap is zero, the pixel is set to the background color.
All devices that have the RC_BITBLT device capability support bitmaps. For more information, see GetDeviceCaps.
Each device has a unique color format. To transfer a bitmap from one device to another, use the GetDIBits and SetDIBits functions.