Constructor SvgTransformF
- Namespace
- SharpVectors.Dom.Svg
- Assembly
- SharpVectors.Core.dll
SvgTransformF()
Initializes a new instance of the SvgTransformF class as the identity transform or matrix.
public SvgTransformF()
SvgTransformF(SvgRectF, SvgPointF[])
Initializes a new instance of the SvgTransformF class to the geometric transform defined by the specified rectangle and array of points.
public SvgTransformF(SvgRectF rect, SvgPointF[] plgpts)
Parameters
rectSvgRectFA SvgRectF structure that represents the rectangle to be transformed.
plgptsSvgPointF[]An array of three SvgPointF structures that represents the points of a parallelogram to which the upper-left, upper-right, and lower-left corners of the rectangle is to be transformed. The lower-right corner of the parallelogram is implied by the first three corners.
Exceptions
- ArgumentNullException
If the
plgptsis null.- ArgumentException
If the length of the
plgptsarray is not equal to 3.- ArgumentOutOfRangeException
If the width or height of the
rectis zero.
SvgTransformF(float[])
Initializes a new instance of the SvgTransformF class with the specified elements.
public SvgTransformF(float[] elements)
Parameters
elementsfloat[]An array of six items defining the transform.
Exceptions
- ArgumentNullException
If the
elementsis null.- ArgumentException
If the length of the
elementsarray is not equal to 6.
SvgTransformF(float, float, float, float, float, float)
Initializes a new instance of the SvgTransformF class with the specified elements.
public SvgTransformF(float m11, float m12, float m21, float m22, float dx, float dy)
Parameters
m11floatThe value in the first row and first column of the new SvgTransformF.
m12floatThe value in the first row and second column of the new SvgTransformF.
m21floatThe value in the second row and first column of the new SvgTransformF.
m22floatThe value in the second row and second column of the new SvgTransformF.
dxfloatThe value in the third row and first column of the new SvgTransformF.
dyfloatThe value in the third row and second column of the new SvgTransformF.
SvgTransformF(SvgTransformF)
Initializes a new instance of the SvgTransformF class with parameters copied from the specified parameter, a copy constructor.
public SvgTransformF(SvgTransformF source)
Parameters
sourceSvgTransformFThe SvgTransformF instance from which the parameters are to be copied.
Exceptions
- ArgumentNullException
If the
sourceis null.