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
-
IDrawableAffineIDrawable
- 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
doubleThe X coordinate scaling element.
scaleY
doubleThe Y coordinate scaling element.
shearX
doubleThe X coordinate shearing element.
shearY
doubleThe Y coordinate shearing element.
translateX
doubleThe X coordinate of the translation element.
translateY
doubleThe Y coordinate of the translation element.
Properties
ScaleX
Gets or sets the X coordinate scaling element.
public double ScaleX { get; set; }
Property Value
ScaleY
Gets or sets the Y coordinate scaling element.
public double ScaleY { get; set; }
Property Value
ShearX
Gets or sets the X coordinate shearing element.
public double ShearX { get; set; }
Property Value
ShearY
Gets or sets the Y coordinate shearing element.
public double ShearY { get; set; }
Property Value
TranslateX
Gets or sets the X coordinate of the translation element.
public double TranslateX { get; set; }
Property Value
TranslateY
Gets or sets the Y coordinate of the translation element.
public double TranslateY { get; set; }
Property Value
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
doubleThe X coordinate of the translation element.
translateY
doubleThe Y coordinate of the translation element.
TransformRotation(double)
Sets the rotation to use.
public void TransformRotation(double angle)
Parameters
angle
doubleThe angle of the rotation.
TransformScale(double, double)
Sets the scale to use.
public void TransformScale(double scaleX, double scaleY)
Parameters
TransformSkewX(double)
Skew to use in X axis.
public void TransformSkewX(double skewX)
Parameters
skewX
doubleThe X skewing element.
TransformSkewY(double)
Skew to use in Y axis.
public void TransformSkewY(double skewY)
Parameters
skewY
doubleThe Y skewing element.