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
scaleXdoubleThe X coordinate scaling element.
scaleYdoubleThe Y coordinate scaling element.
shearXdoubleThe X coordinate shearing element.
shearYdoubleThe Y coordinate shearing element.
translateXdoubleThe X coordinate of the translation element.
translateYdoubleThe 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
translateXdoubleThe X coordinate of the translation element.
translateYdoubleThe Y coordinate of the translation element.
TransformRotation(double)
Sets the rotation to use.
public void TransformRotation(double angle)
Parameters
angledoubleThe 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
skewXdoubleThe X skewing element.
TransformSkewY(double)
Skew to use in Y axis.
public void TransformSkewY(double skewY)
Parameters
skewYdoubleThe Y skewing element.