Table of Contents

Class DrawableAffine

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Adjusts the current affine transformation matrix with the specified affine transformation matrix. Note that the current affine transform is adjusted rather than replaced.

public sealed class DrawableAffine : IDrawableAffine, IDrawable
Inheritance
DrawableAffine
Implements
IDrawableAffine
IDrawable
Inherited Members

Constructors

DrawableAffine()

Initializes a new instance of the DrawableAffine class.

public DrawableAffine()

DrawableAffine(double, double, double, double, double, double)

Initializes a new instance of the DrawableAffine class.

public DrawableAffine(double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY)

Parameters

scaleX double

The X coordinate scaling element.

scaleY double

The Y coordinate scaling element.

shearX double

The X coordinate shearing element.

shearY double

The Y coordinate shearing element.

translateX double

The X coordinate of the translation element.

translateY double

The Y coordinate of the translation element.

Properties

ScaleX

Gets or sets the X coordinate scaling element.

public double ScaleX { get; set; }

Property Value

double

ScaleY

Gets or sets the Y coordinate scaling element.

public double ScaleY { get; set; }

Property Value

double

ShearX

Gets or sets the X coordinate shearing element.

public double ShearX { get; set; }

Property Value

double

ShearY

Gets or sets the Y coordinate shearing element.

public double ShearY { get; set; }

Property Value

double

TranslateX

Gets or sets the X coordinate of the translation element.

public double TranslateX { get; set; }

Property Value

double

TranslateY

Gets or sets the Y coordinate of the translation element.

public double TranslateY { get; set; }

Property Value

double

Methods

Reset()

Reset to default.

public void Reset()

TransformOrigin(double, double)

Sets the origin of coordinate system.

public void TransformOrigin(double translateX, double translateY)

Parameters

translateX double

The X coordinate of the translation element.

translateY double

The Y coordinate of the translation element.

TransformRotation(double)

Sets the rotation to use.

public void TransformRotation(double angle)

Parameters

angle double

The angle of the rotation.

TransformScale(double, double)

Sets the scale to use.

public void TransformScale(double scaleX, double scaleY)

Parameters

scaleX double

The X coordinate scaling element.

scaleY double

The Y coordinate scaling element.

TransformSkewX(double)

Skew to use in X axis.

public void TransformSkewX(double skewX)

Parameters

skewX double

The X skewing element.

TransformSkewY(double)

Skew to use in Y axis.

public void TransformSkewY(double skewY)

Parameters

skewY double

The Y skewing element.