Last update Sun May 11 01:02:37 2014

dmagick.c.geometry



enum GravityType: int;

Specify positioning of an object (e.g. text, image) within a bounding region (e.g. an image). Gravity provides a convenient way to locate objects irrespective of the size of the bounding region, in other words, you don't need to provide absolute coordinates in order to position an object. A common default for gravity is NorthWestGravity.

UndefinedGravity


ForgetGravity

Don't use gravity.

NorthWestGravity

Position object at top-left of region.

NorthGravity

Position object at top-center of region.

NorthEastGravity

Position object at top-right of region.

WestGravity

Position object at left-center of region.

CenterGravity

Position object at center of region.

EastGravity

Position object at right-center of region.

SouthWestGravity

Position object at left-bottom of region.

SouthGravity

Position object at bottom-center of region.

SouthEastGravity

Position object at bottom-right of region.

StaticGravity


struct AffineMatrix;

An AffineMatrix object describes a coordinate transformation.

double sx;

The amount of scaling on the x-axis.

double rx;

The amount of rotation on the x-axis, in radians.

double ry;

The amount of rotation on the y-axis, in radians.

double sy;

The amount of scaling on the y-axis.

double tx;

The amount of translation on the x-axis, in pixels.

double ty;

The amount of translation on the x-axis, in pixels.