Header of a bitmap file. More...
#include <bitmap.hpp>
Public Attributes | |
char | id [2] |
File identifier (must be 'BM'). | |
unsigned int | file_size |
File's size. | |
unsigned int | nop |
not used. | |
unsigned int | data_offset |
Begininf of the datas. | |
unsigned int | header_size |
Header's size. | |
unsigned int | width |
Image's width. | |
unsigned int | height |
Image's height. | |
unsigned short | layers |
Number of layers. | |
unsigned short | bpp |
Bits per pixel. | |
unsigned int | compression |
Compression algorithm. | |
unsigned int | image_size |
Image's size (bytes). | |
unsigned int | ppm_x |
Horizontal resolution (pixels per meter). | |
unsigned int | ppm_y |
Vertical resolution (pixels per meter). | |
unsigned int | colors_count |
Number of colors. | |
unsigned int | importants_colors |
Number of important colors. |
Header of a bitmap file.
Definition at line 76 of file bitmap.hpp.
unsigned short claw::graphic::bitmap::file_structure::header::bpp |
Bits per pixel.
Definition at line 103 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), claw::graphic::bitmap::reader::load(), claw::graphic::bitmap::reader::load_1bpp(), claw::graphic::bitmap::reader::load_24bpp(), claw::graphic::bitmap::reader::load_4bpp(), claw::graphic::bitmap::reader::load_4bpp_rgb(), claw::graphic::bitmap::reader::load_4bpp_rle(), claw::graphic::bitmap::reader::load_8bpp(), claw::graphic::bitmap::reader::load_8bpp_rgb(), claw::graphic::bitmap::reader::load_8bpp_rle(), and claw::graphic::bitmap::reader::load_palette().
Number of colors.
Definition at line 118 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
Compression algorithm.
Definition at line 106 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), claw::graphic::bitmap::reader::load_4bpp(), claw::graphic::bitmap::reader::load_4bpp_rgb(), claw::graphic::bitmap::reader::load_4bpp_rle(), claw::graphic::bitmap::reader::load_8bpp(), claw::graphic::bitmap::reader::load_8bpp_rgb(), and claw::graphic::bitmap::reader::load_8bpp_rle().
Begininf of the datas.
Definition at line 88 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), claw::graphic::bitmap::reader::load_1bpp(), claw::graphic::bitmap::reader::load_24bpp(), claw::graphic::bitmap::reader::load_4bpp_rgb(), claw::graphic::bitmap::reader::load_4bpp_rle(), claw::graphic::bitmap::reader::load_8bpp_rgb(), and claw::graphic::bitmap::reader::load_8bpp_rle().
File's size.
Definition at line 82 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
Header's size.
Definition at line 91 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
Image's height.
Definition at line 97 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), and claw::graphic::bitmap::reader::load().
File identifier (must be 'BM').
Definition at line 79 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), and claw::graphic::bitmap::reader::load().
Image's size (bytes).
Definition at line 109 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
Number of important colors.
Definition at line 121 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
unsigned short claw::graphic::bitmap::file_structure::header::layers |
Number of layers.
Definition at line 100 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
unsigned int claw::graphic::bitmap::file_structure::header::nop |
not used.
Definition at line 85 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
unsigned int claw::graphic::bitmap::file_structure::header::ppm_x |
Horizontal resolution (pixels per meter).
Definition at line 112 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
unsigned int claw::graphic::bitmap::file_structure::header::ppm_y |
Vertical resolution (pixels per meter).
Definition at line 115 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header().
unsigned int claw::graphic::bitmap::file_structure::header::width |
Image's width.
Definition at line 94 of file bitmap.hpp.
Referenced by claw::graphic::bitmap::writer::init_header(), and claw::graphic::bitmap::reader::load().