BITMAPINFO Structure |
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
[SerializableAttribute] public struct BITMAPINFO : IEquatable<BITMAPINFO>
The BITMAPINFO type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) |
Tests whether the specified object is a BITMAPINFO structure
and is equivalent to this BITMAPINFO structure.
(Overrides ValueTypeEquals(Object).) | |
Equals(BITMAPINFO) |
Tests whether the specified BITMAPINFO structure is equivalent to this BITMAPINFO structure.
| |
GetHashCode |
Returns a hash code for this BITMAPINFO structure.
(Overrides ValueTypeGetHashCode.) | |
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 | |
---|---|---|
Equality |
Tests whether two specified BITMAPINFO structures are equivalent.
| |
Inequality |
Tests whether two specified BITMAPINFO structures are different.
|
Name | Description | |
---|---|---|
bmiColors |
The bmiColors member contains one of the following:
An array of RGBQUAD. The elements of the array that make up the
color table.
An array of 16-bit unsigned integers that specifies indexes into the currently realized
logical palette. This use of bmiColors is allowed for functions that use DIBs.
When bmiColors elements contain indexes to a realized logical palette, they must
also call the following bitmap functions:
CreateDIBitmap CreateDIBPatternBrush CreateDIBSection The iUsage parameter of CreateDIBSection must be set to DIB_PAL_COLORS. The number of entries in the array depends on the values of the biBitCount and biClrUsed members of the BITMAPINFOHEADER structure. The colors in the bmiColors table appear in order of importance. For more information, see the Remarks section. | |
bmiHeader |
Specifies a BITMAPINFOHEADER structure that contains information
about the dimensions of color format.
|
A bitmap is packed when the bitmap array immediately follows the BITMAPINFO header. Packed bitmaps are referenced by a single pointer. For packed bitmaps, the biClrUsed member must be set to an even number when using the DIB_PAL_COLORS mode so that the DIB bitmap array starts on a DWORD boundary.
Note The bmiColors member should not contain palette indexes if the bitmap is to be stored in a file or transferred to another application.
Unless the application has exclusive use and control of the bitmap, the bitmap color table should contain explicit RGB values.