daffodil

This module provides the public interface for Daffodil.

Modules

bmp
module daffodil.bmp
Undocumented in source.
color
module daffodil.color

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

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.

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;
Undocumented in source.
daffodil.image
public import daffodil.image;
Undocumented in source.
daffodil.color
public import daffodil.color;
Undocumented in source.
daffodil.util.errors
public import daffodil.util.errors;
Undocumented in source.
filter
public static import filter = daffodil.filter;
Undocumented in source.
transform
public static import transform = daffodil.transform;
Undocumented in source.
bmp
public static import bmp = daffodil.bmp;
Undocumented in source.

Members

Aliases

DataRange
alias DataRange = InputRange!ubyte
Undocumented in source.
OutRange
alias OutRange = OutputRange!ubyte
Undocumented in source.
isOutRange
alias isOutRange(T) = isOutputRange!(T, ubyte)
Undocumented in source.

Functions

detectFormat
Format detectFormat(T data)
auto detectFormat(T loadeable)
Format detectFormat(Image!bpc 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!bpc image, T data)
void save(Image!bpc image, string path)
void save(Image!bpc 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)
Undocumented in source.

Meta