EU1KY AA
bmp_image Struct Reference

#include <libnsbmp.h>

Data Fields

bmp_bitmap_callback_vt bitmap_callbacks
 
uint8_t * bmp_data
 
uint32_t width
 
uint32_t height
 
bool decoded
 
voidbitmap
 
uint32_t buffer_size
 
bmp_encoding encoding
 
uint32_t bitmap_offset
 
uint16_t bpp
 
uint32_t colours
 
uint32_t * colour_table
 
bool limited_trans
 
uint32_t trans_colour
 
bool reversed
 
bool ico
 
bool opaque
 
uint32_t mask [4]
 
int32_t shift [4]
 
uint32_t transparent_index
 

Field Documentation

void* bmp_image::bitmap

whether the image has been decoded

bmp_bitmap_callback_vt bmp_image::bitmap_callbacks

callbacks for bitmap functions

uint32_t bmp_image::bitmap_offset

pixel encoding type

uint8_t* bmp_image::bmp_data
uint16_t bmp_image::bpp

offset of bitmap data

uint32_t bmp_image::buffer_size

decoded image Internal members are listed below

uint32_t* bmp_image::colour_table

number of colours

uint32_t bmp_image::colours

bits per pixel

bool bmp_image::decoded

heigth of BMP (valid after _analyse)

bmp_encoding bmp_image::encoding

total number of bytes of BMP data available

uint32_t bmp_image::height

width of BMP (valid after _analyse)

bool bmp_image::ico

scanlines are top to bottom

bool bmp_image::limited_trans

colour table

uint32_t bmp_image::mask[4]

true if the bitmap does not contain an alpha channel

bool bmp_image::opaque

image is part of an ICO, mask follows

bool bmp_image::reversed

colour to display for "transparent" pixels when using limited transparency

int32_t bmp_image::shift[4]

four bitwise mask

uint32_t bmp_image::trans_colour

whether to use bmp's limited transparency

uint32_t bmp_image::transparent_index

four bitwise shifts

uint32_t bmp_image::width

pointer to BMP data


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