GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_bmp_info_header Struct Reference

A BMP header. More...

#include <gp_bmp.h>

Data Fields

uint32_t pixel_offset
 Offset to image data.
 
uint32_t header_offset
 Offset to the start of the info header.
 
uint32_t header_size
 Header size (palette is on offset header_size + 14)
 
int32_t w
 Image width in pixels.
 
int32_t h
 Image height in pixels.
 
uint32_t palette_colors
 Number of palette colors.
 
uint32_t R_mask
 Red mask for bitfields compression.
 
uint32_t G_mask
 Green mask for bitfields compression.
 
uint32_t B_mask
 Blue mask for bitfields compression.
 
uint32_t A_mask
 Alpha mask for bitfields compression.
 

Detailed Description

A BMP header.

Sometimes called a DIB header as well.

Definition at line 23 of file gp_bmp.h.

Field Documentation

◆ h

int32_t gp_bmp_info_header::h

Image height in pixels.

If negative image is top-down (bottom-up is default)

Definition at line 42 of file gp_bmp.h.

◆ palette_colors

uint32_t gp_bmp_info_header::palette_colors

Number of palette colors.

If zero image uses whole range (2^bpp colors)

Definition at line 51 of file gp_bmp.h.


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