Adding source/Graphics/Image/Format/ico.h
This commit is contained in:
parent
02912b857b
commit
b78531a570
1 changed files with 19 additions and 0 deletions
19
source/Graphics/Image/Format/ico.h
Normal file
19
source/Graphics/Image/Format/ico.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#ifndef SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H
|
||||
#define SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
typedef struct _ICONDIRENTRY {
|
||||
uint8_t width; // width, in pixels.
|
||||
uint8_t height; // height, in pixels
|
||||
uint8_t num_colors; // Number of colors (0 if >= 8bpp)
|
||||
uint16_t color_planes; // Color planes
|
||||
uint16_t bpp; // Bits per pixel
|
||||
uint32_t size; // size of the image, in bytes.
|
||||
uint32_t offset; // offset from the start of ICO
|
||||
} ICONDIRENTRY;
|
||||
|
||||
#define ICONDIRENTRY_SIZE 16 /* Size as stored on disk (no padding) */
|
||||
|
||||
#endif /* SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue