OpenTTD Source 20260721-master-g25ec12c62d
screenshot_bmp.cpp File Reference

BMP screenshot provider. More...

#include "stdafx.h"
#include "core/math_func.hpp"
#include "core/string_builder.hpp"
#include "fileio_func.h"
#include "screenshot_type.h"
#include "safeguards.h"

Go to the source code of this file.

Data Structures

struct  RgbQuad
 Format of palette data in BMP header. More...
class  ScreenshotProvider_Bmp

Variables

constexpr size_t BITMAP_FILE_HEADER_SIZE = 14
 The size of a bitmap file header.
constexpr size_t BITMAP_INFO_HEADER_SIZE = 40
 The size of a bitmap info header.

Detailed Description

BMP screenshot provider.

Definition in file screenshot_bmp.cpp.

Variable Documentation

◆ BITMAP_FILE_HEADER_SIZE

size_t BITMAP_FILE_HEADER_SIZE = 14
constexpr

The size of a bitmap file header.

Definition at line 18 of file screenshot_bmp.cpp.

Referenced by ScreenshotProvider_Bmp::MakeImage().

◆ BITMAP_INFO_HEADER_SIZE

size_t BITMAP_INFO_HEADER_SIZE = 40
constexpr

The size of a bitmap info header.

Definition at line 19 of file screenshot_bmp.cpp.

Referenced by ScreenshotProvider_Bmp::MakeImage().