OpenTTD Source 20260206-master-g4d4e37dbf1
BmpInfo Struct Reference

Data Fields

size_t offset
 offset of bitmap data from .bmp file beginning
uint32_t width
 bitmap width
uint32_t height
 bitmap height
bool os2_bmp
 true if OS/2 1.x or windows 2.x bitmap
uint16_t bpp
 bits per pixel
uint32_t compression
 compression method (0 = none, 1 = 8-bit RLE, 2 = 4-bit RLE)
uint32_t palette_size
 number of colours in palette

Detailed Description

Definition at line 16 of file bmp.h.

Field Documentation

◆ bpp

uint16_t BmpInfo::bpp

bits per pixel

Definition at line 21 of file bmp.h.

Referenced by ReadHeightmapBMPImageData().

◆ compression

uint32_t BmpInfo::compression

compression method (0 = none, 1 = 8-bit RLE, 2 = 4-bit RLE)

Definition at line 22 of file bmp.h.

◆ height

uint32_t BmpInfo::height

◆ offset

size_t BmpInfo::offset

offset of bitmap data from .bmp file beginning

Definition at line 17 of file bmp.h.

◆ os2_bmp

bool BmpInfo::os2_bmp

true if OS/2 1.x or windows 2.x bitmap

Definition at line 20 of file bmp.h.

◆ palette_size

uint32_t BmpInfo::palette_size

number of colours in palette

Definition at line 23 of file bmp.h.

Referenced by ReadHeightmapBMPImageData().

◆ width

uint32_t BmpInfo::width

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