imageformats.bmp

Undocumented in source.

Members

Functions

detect_bmp
bool detect_bmp(Reader stream)
Undocumented in source. Be warned that the author may not have intended to support it.
read_bmp
IFImage read_bmp(char[] filename, long req_chans)

Reads a BMP image. req_chans defines the format of returned image (you can use ColFmt here).

read_bmp
IFImage read_bmp(Reader stream, long req_chans)
Undocumented in source. Be warned that the author may not have intended to support it.
read_bmp_from_mem
IFImage read_bmp_from_mem(ubyte[] source, long req_chans)

Reads an image from a buffer containing a BMP image. req_chans defines the format of returned image (you can use ColFmt here).

read_bmp_header
BMP_Header read_bmp_header(char[] filename)

Returns the header of a BMP file.

read_bmp_header_from_mem
BMP_Header read_bmp_header_from_mem(ubyte[] source)

Reads the image header from a buffer containing a BMP image.

read_bmp_info
void read_bmp_info(char[] filename, int w, int h, int chans)

Returns width, height and color format information via w, h and chans.

read_bmp_info
void read_bmp_info(Reader stream, int w, int h, int chans)
Undocumented in source. Be warned that the author may not have intended to support it.
read_bmp_info_from_mem
void read_bmp_info_from_mem(ubyte[] source, int w, int h, int chans)

Returns width, height and color format information via w, h and chans.

write_bmp
void write_bmp(char[] file, long w, long h, ubyte[] data, long tgt_chans)

Writes a BMP image into a file.

write_bmp_to_mem
ubyte[] write_bmp_to_mem(long w, long h, ubyte[] data, long tgt_chans)

Writes a BMP image into a buffer.

Structs

BMP_Header
struct BMP_Header

Header of a BMP file.

DibV1
struct DibV1

Part of BMP header, not always present.

DibV2
struct DibV2

Part of BMP header, not always present.

DibV4
struct DibV4

Part of BMP header, not always present.

DibV5
struct DibV5

Part of BMP header, not always present.

Meta