daffodil

This module provides the public interface for Daffodil.

Modules

bmp
module daffodil.bmp
Undocumented in source.
colorspace
module daffodil.colorspace
Undocumented in source.
filter
module daffodil.filter

This module provides various filter functions that can be performed on images. Filter functions differ from transformations (:d:mod:daffodil.transform) in that they cannot be performed in-place, ie. a copy of the image is required to perform the filter.

image
module daffodil.image

Exposes the :d:class:Image class, which provides basic storage, access and conversion of images.

meta
module daffodil.meta

Exposes the :d:class:MetaData class, used to store metadata for images.

pixel
module daffodil.pixel

This module contains the implementation for the internal pixel storage mechanisms.

transform
module daffodil.transform

This module provides various transformation functions that can be performed on images. Transform functions differ from filters (:d:mod:daffodil.filter) in that they can be performed in-place.

util
module daffodil.util

Public Imports

daffodil.meta
public import daffodil.meta;
daffodil.image
public import daffodil.image;
daffodil.pixel
public import daffodil.pixel;
daffodil.colorspace
public import daffodil.colorspace;
daffodil.util.errors
public import daffodil.util.errors;
filter
public import filter = daffodil.filter;
transform
public import transform = daffodil.transform;
bmp
public import bmp = daffodil.bmp;

Members

Aliases

DataRange
alias DataRange = InputRange!ubyte
OutRange
alias OutRange = OutputRange!ubyte
isOutRange
alias isOutRange(T) = isOutputRange!(T, ubyte)

Functions

detectFormat
Format detectFormat(T data)
auto detectFormat(T loadeable)
Format detectFormat(Image!V image)

Detects the :d:struct:Format a given input is in.

load
auto load(T data)
auto load(T loadeable)

Loads a :d:class:Image from a given input.

loadMeta
auto loadMeta(T data)
auto loadMeta(T loadeable)

Loads the metadata from a given input.

registerFormat
void registerFormat(Format format)

Register a new format for auto-detection with :d:func:detectFormat, :d:func:loadMeta and :d:func:load functions.

save
void save(Image!V image, T data)
void save(Image!V image, string path)
void save(Image!V image, T saveable)

Saves a particular :d:class:Image to a given output.

Structs

Format
struct Format

A struct for metadata about an Image Format. See :d:func:registerFormat for more information.

Templates

isDataRange
template isDataRange(T)

Meta