Table of Contents

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

rect SvgRectF

A SvgRectF structure that represents the rectangle to be transformed.

plgpts SvgPointF[]

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 plgpts is null.

ArgumentException

If the length of the plgpts array is not equal to 3.

ArgumentOutOfRangeException

If the width or height of the rect is zero.

SvgTransformF(float[])

Initializes a new instance of the SvgTransformF class with the specified elements.

public SvgTransformF(float[] elements)

Parameters

elements float[]

An array of six items defining the transform.

Exceptions

ArgumentNullException

If the elements is null.

ArgumentException

If the length of the elements array 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

m11 float

The value in the first row and first column of the new SvgTransformF.

m12 float

The value in the first row and second column of the new SvgTransformF.

m21 float

The value in the second row and first column of the new SvgTransformF.

m22 float

The value in the second row and second column of the new SvgTransformF.

dx float

The value in the third row and first column of the new SvgTransformF.

dy float

The 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

source SvgTransformF

The SvgTransformF instance from which the parameters are to be copied.

Exceptions

ArgumentNullException

If the source is null.