Last update Sun May 11 01:02:36 2014

dmagick.Montage

License:
zlib (See accompanying LICENSE file)

Authors:
Mike Wey

A montage is a single image which is composed of thumbnail images composed in a uniform grid. The size of the montage image is determined by the size of the individual thumbnails and the number of rows and columns in the grid.

class Montage;

Montage is used to provide montage options and provides methods to set all options required to render simple (unframed) montages.

this();


void backgroundColor(Color color);
Color backgroundColor();

Specifies the background color that thumbnails are imaged upon.

void columns(size_t columns);
size_t columns();

Specifies the maximum number of columns in the montage.

void fillColor(Color color);
Color fillColor();

Specifies the fill color to use for the label text.

void font(string font);
string font();

Specifies the thumbnail label font.

void geometry(Geometry geometry);
Geometry geometry();

Specifies the size of the generated thumbnail.

void gravity(GravityType gravity);
GravityType gravity();

Specifies the thumbnail positioning within the specified geometry area. If the thumbnail is smaller in any dimension than the geometry, then it is placed according to this specification.

void label(string label);
string label();

Specifies the format used for the image label. Special format characters may be embedded in the format string to include information about the image.

See Also:
dmagick.Image.Image.annotate for the format characters.

void pointSize(double size);
double pointSize();

Specifies the thumbnail label font size.

void rows(size_t rows);
size_t rows();

Specifies the maximum number of rows in the montage.

void shadow(bool shadow);
bool shadow();

Enable/disable drop-shadow on thumbnails.

void strokeColor(Color color);
Color strokeColor();

Specifies the stroke color to use for the label text.

void texture(string texture);
string texture();

Specifies a texture image to use as montage background. The built-in textures "granite:" and "plasma:" are available. A texture is the same as a background image.

class MontageFramed: dmagick.Montage.Montage;

MontageFramed provides the means to specify montage options when it is desired to have decorative frames around the image thumbnails.

this(Geometry frameGeometry);

Construct the info to use for a framed montage.

Parameters:

Geometry frameGeometry The size portion indicates the width and height of the frame. If no offsets are given then the border added is a solid color. Offsets x and y, if present, specify that the width and height of the border is partitioned to form an outer bevel of thickness x pixels and an inner bevel of thickness y pixels. Negative offsets make no sense as frame arguments.

void borderColor(Color color);
Color borderColor();

Specifies the background color within the thumbnail frame.

void borderWidth(size_t width);
size_t borderWidth();

Specifies the border to place between a thumbnail and its surrounding frame. This option only takes effect if geometry specification doesn't also specify the thumbnail border width.

void frameGeometry(Geometry geometry);
Geometry frameGeometry();
Color matteColor();

Specifies the geometry specification for frame to place around thumbnail. If this parameter is not specified, then the montage is unframed.

Parameters:

Geometry geometry The size portion indicates the width and height of the frame. If no offsets are given then the border added is a solid color. Offsets x and y, if present, specify that the width and height of the border is partitioned to form an outer bevel of thickness x pixels and an inner bevel of thickness y pixels. Negative offsets make no sense as frame arguments.