diff --git a/source/Graphics/Image/Format/ico.h b/source/Graphics/Image/Format/ico.h new file mode 100644 index 0000000..3df9739 --- /dev/null +++ b/source/Graphics/Image/Format/ico.h @@ -0,0 +1,19 @@ + +#ifndef SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H +#define SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H + +#include + +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 */