A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BmpWriter::BitmapInfoheader Struct Reference

#include <genesis/utils/formats/bmp/writer.hpp>

Detailed Description

Bitmap Info Header.

This POD structure holds information about a Bitmap image. In the Bitmap file format, it immediately follows the BitmapFileheader, thus the start of the data is at byte 14.

Furthermore, for Bitmaps that do not use full 24 (or more) bit colors, a color palette is necessary. The BitmapInfo structure is able to hold this additional information, see there for details.

The data in this struct is stored in the following order:

start size name stdvalue purpose
14 4 biSize 40 Size of the BitmapInfoheader structure, in bytes.
18 4 biWidth ?? Width of the image, in pixels.
22 4 biHeight ?? Height of the image, in pixels.
26 2 biPlanes 1 Number of planes of the target device.
28 2 biBitCount 8 Number of bits per pixel.
30 4 biCompression 0 Compression type, usually zero (no compression).
34 4 biSizeImage 0 Size of the image data, in bytes. Without compression, set this member to zero.
38 4 biXPelsPerMeter 0 Horizontal pixels per meter on the designated target device, usually set to zero.
42 4 biYPelsPerMeter 0 Vertical pixels per meter on the designated targer device, usually set to zero.
46 4 biClrUsed 0 Number of colors used in the bitmap, if zero the number is calculated using biBitCount.
50 4 biClrImportant 0 Number of color that are 'important'. If zero, all colors are important.
See Also
BmpWriter
BitmapFileheader
BitmapInfo

Definition at line 124 of file utils/formats/bmp/writer.hpp.

Public Attributes

uint16_t biBitCount = 8
 
uint32_t biClrImportant = 0
 
uint32_t biClrUsed = 0
 
uint32_t biCompression = 0
 
uint32_t biHeight
 
uint16_t biPlanes = 1
 
uint32_t biSize = 40
 
uint32_t biSizeImage = 0
 
uint32_t biWidth
 
uint32_t biXPelsPerMeter = 0
 
uint32_t biYPelsPerMeter = 0
 

Member Data Documentation

uint16_t biBitCount = 8

Definition at line 130 of file utils/formats/bmp/writer.hpp.

uint32_t biClrImportant = 0

Definition at line 136 of file utils/formats/bmp/writer.hpp.

uint32_t biClrUsed = 0

Definition at line 135 of file utils/formats/bmp/writer.hpp.

uint32_t biCompression = 0

Definition at line 131 of file utils/formats/bmp/writer.hpp.

uint32_t biHeight

Definition at line 128 of file utils/formats/bmp/writer.hpp.

uint16_t biPlanes = 1

Definition at line 129 of file utils/formats/bmp/writer.hpp.

uint32_t biSize = 40

Definition at line 126 of file utils/formats/bmp/writer.hpp.

uint32_t biSizeImage = 0

Definition at line 132 of file utils/formats/bmp/writer.hpp.

uint32_t biWidth

Definition at line 127 of file utils/formats/bmp/writer.hpp.

uint32_t biXPelsPerMeter = 0

Definition at line 133 of file utils/formats/bmp/writer.hpp.

uint32_t biYPelsPerMeter = 0

Definition at line 134 of file utils/formats/bmp/writer.hpp.


The documentation for this struct was generated from the following file: