ADTF Display Toolbox
Loading...
Searching...
No Matches
tWin32BitmapInfoHeader

Struct to get informations about a bitmap. More...

#include <displaytbstructs.h>

Public Attributes

tUInt32 nSize
 Specifies the number of bytes required by the structure.
 
tInt32 nWidth
 Specifies the width of the bitmap, in pixels.
 
tInt32 nHeight
 Specifies the height of the bitmap, in pixels.
 
tUInt16 nPlanes
 Specifies the number of planes for the target device. This value must be set to 1.
 
tUInt16 nBitCount
 Specifies the number of bits in a bitmap.
 
tUInt32 nCompression
 Specifies the compression rate of the bitmap.
 
tUInt32 nSizeImage
 Specifies the size, in bytes, of the image. This may be set to zero for uncompressed bitmaps.
 
tInt32 nXPelsPerMeter
 Specifies the horizontal resolution, in pixels-per-meter, of the target device for the bitmap.
 
tInt32 nYPelsPerMeter
 Specifies the vertical resolution, in pixels-per-meter, of the target device for the bitmap.
 
tUInt32 nClrUsed
 Specifies the number of color indexes in the color table that are actually used by the bitmap.
 
tUInt32 nClrImportant
 Specifies the number of color indexes that are required for displaying the bitmap.
 

Detailed Description

Struct to get informations about a bitmap.

Definition at line 43 of file displaytbstructs.h.

Member Data Documentation

◆ nBitCount

tUInt16 nBitCount

Specifies the number of bits in a bitmap.

Definition at line 54 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo(), and cImage::Load().

◆ nClrImportant

tUInt32 nClrImportant

Specifies the number of color indexes that are required for displaying the bitmap.

If this value is zero, all colors are required

Definition at line 71 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nClrUsed

tUInt32 nClrUsed

Specifies the number of color indexes in the color table that are actually used by the bitmap.

If this value is zero, the bitmap uses the maximum number of colors corresponding to the value of the nBitCount member for the compression mode specified by nCompression

Definition at line 68 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nCompression

tUInt32 nCompression

Specifies the compression rate of the bitmap.

Definition at line 56 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nHeight

tInt32 nHeight

Specifies the height of the bitmap, in pixels.

Definition at line 50 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo(), and cImage::Load().

◆ nPlanes

tUInt16 nPlanes

Specifies the number of planes for the target device. This value must be set to 1.

Definition at line 52 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nSize

tUInt32 nSize

Specifies the number of bytes required by the structure.

Definition at line 46 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nSizeImage

tUInt32 nSizeImage

Specifies the size, in bytes, of the image. This may be set to zero for uncompressed bitmaps.

Definition at line 58 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nWidth

tInt32 nWidth

Specifies the width of the bitmap, in pixels.

Definition at line 48 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo(), and cImage::Load().

◆ nXPelsPerMeter

tInt32 nXPelsPerMeter

Specifies the horizontal resolution, in pixels-per-meter, of the target device for the bitmap.

An application can use this value to select a bitmap from a resource group that best matches the characteristics of the current device

Definition at line 62 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().

◆ nYPelsPerMeter

tInt32 nYPelsPerMeter

Specifies the vertical resolution, in pixels-per-meter, of the target device for the bitmap.

Definition at line 64 of file displaytbstructs.h.

Referenced by cImage::AllocBitmapInfo().