imageformats

Undocumented in source.

Members

Classes

ImageIOException
class ImageIOException

Enums

ColFmt
enum ColFmt

Color format

Functions

read_bmp
IFImage read_bmp(char[] filename, long req_chans)
read_bmp_from_mem
IFImage read_bmp_from_mem(ubyte[] source, long req_chans)
read_bmp_header
BMP_Header read_bmp_header(char[] filename)
read_bmp_info
void read_bmp_info(char[] filename, long w, long h, long chans)
read_image
IFImage read_image(char[] file, long req_chans)

Reads an image from file.

read_image_from_mem
IFImage read_image_from_mem(ubyte[] source, long req_chans)

Reads an image in memory.

read_image_info
void read_image_info(char[] file, long w, long h, long chans)

Returns basic info about an image. If number of channels is unknown chans is set to zero.

read_jpeg
IFImage read_jpeg(char[] filename, long req_chans)
read_jpeg_from_mem
IFImage read_jpeg_from_mem(ubyte[] source, long req_chans)
read_jpeg_info
void read_jpeg_info(char[] filename, long w, long h, long chans)
read_png
IFImage read_png(char[] filename, long req_chans)
read_png_from_mem
IFImage read_png_from_mem(ubyte[] source, long req_chans)
read_png_header
PNG_Header read_png_header(char[] filename)
read_png_info
void read_png_info(char[] filename, long w, long h, long chans)
read_tga
IFImage read_tga(char[] filename, long req_chans)
read_tga_from_mem
IFImage read_tga_from_mem(ubyte[] source, long req_chans)
read_tga_header
TGA_Header read_tga_header(char[] filename)
read_tga_info
void read_tga_info(char[] filename, long w, long h, long chans)
write_image
void write_image(char[] file, long w, long h, ubyte[] data, long req_chans)

Writes an image to file.

write_png
void write_png(char[] file, long w, long h, ubyte[] data, long tgt_chans)
write_png_to_mem
ubyte[] write_png_to_mem(long w, long h, ubyte[] data, long tgt_chans)
write_tga
void write_tga(char[] file, long w, long h, ubyte[] data, long tgt_chans)
write_tga_to_mem
ubyte[] write_tga_to_mem(long w, long h, ubyte[] data, long tgt_chans)

Structs

BMP_Header
struct BMP_Header
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.

IFImage
struct IFImage

Image

PNG_Header
struct PNG_Header
TGA_Header
struct TGA_Header

Meta