imageformats

Undocumented in source.

Modules

bmp
module imageformats.bmp
Undocumented in source.
jpeg
module imageformats.jpeg
Undocumented in source.
png
module imageformats.png
Undocumented in source.
tga
module imageformats.tga
Undocumented in source.

Public Imports

imageformats.png
public import imageformats.png;
Undocumented in source.
imageformats.tga
public import imageformats.tga;
Undocumented in source.
imageformats.bmp
public import imageformats.bmp;
Undocumented in source.
imageformats.jpeg
public import imageformats.jpeg;
Undocumented in source.

Members

Aliases

LineConv
alias LineConv(T) = void function(in T[] src, T[] tgt)
Undocumented in source.

Classes

FileReader
class FileReader
Undocumented in source.
FileWriter
class FileWriter
Undocumented in source.
ImageIOException
class ImageIOException

Thrown from all the functions...

MemReader
class MemReader
Undocumented in source.
MemWriter
class MemWriter
Undocumented in source.

Enums

ColFmt
enum ColFmt

Color format which you can pass to the read and write functions.

_ColFmt
enum _ColFmt
Undocumented in source.

Functions

get_converter
LineConv!T get_converter(long src_chans, long tgt_chans)
Undocumented in source. Be warned that the author may not have intended to support it.
read_image
IFImage read_image(char[] file, long req_chans)

Reads an image from file. req_chans defines the format of returned image (you can use ColFmt here).

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

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

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

Returns width, height and color format information via w, h and chans. If number of channels is unknown chans is set to zero, otherwise chans values map to those of ColFmt.

write_image
void write_image(char[] file, long w, long h, ubyte[] data, long req_chans)

Writes an image to file. req_chans defines the format the image is saved in (you can use ColFmt here).

Interfaces

Reader
interface Reader
Undocumented in source.
Writer
interface Writer
Undocumented in source.

Structs

IFImage
struct IFImage

Image with 8-bit channels. Top-left corner at (0, 0).

IFImage16
struct IFImage16

Image with 16-bit channels. Top-left corner at (0, 0).

Meta