|
PdfSharp-WPF
1.31.7289
|
Represents a 3-by-3 matrix that represents an affine 2D transformation. More...
Classes | |
| class | MatrixHelper |
| Internal matrix helper. | |
Public Member Functions | |
| XMatrix (double m11, double m12, double m21, double m22, double offsetX, double offsetY) | |
| Initializes a new instance of the XMatrix struct. More... | |
| void | SetIdentity () |
| Sets this matrix into an identity matrix. More... | |
| void | InitIdentity () |
| Fixes a bug that XMatrixTypes.Identity is not handled correctly in some cases. More... | |
| double[] | GetElements () |
| Gets an array of double values that represents the elements of this matrix. More... | |
| void | Append (XMatrix matrix) |
| Appends the specified matrix to this matrix. More... | |
| void | Prepend (XMatrix matrix) |
| Prepends the specified matrix to this matrix. More... | |
| void | Multiply (XMatrix matrix) |
| Appends the specified matrix to this matrix. More... | |
| void | MultiplyPrepend (XMatrix matrix) |
| Prepends the specified matrix to this matrix. More... | |
| void | Multiply (XMatrix matrix, XMatrixOrder order) |
| Multiplies this matrix with the specified matrix. More... | |
| void | Translate (double offsetX, double offsetY) |
| Appends a translation of the specified offsets to this matrix. More... | |
| void | TranslateAppend (double offsetX, double offsetY) |
| Appends a translation of the specified offsets to this matrix. More... | |
| void | TranslatePrepend (double offsetX, double offsetY) |
| Prepends a translation of the specified offsets to this matrix. More... | |
| void | Translate (double offsetX, double offsetY, XMatrixOrder order) |
| Translates the matrix with the specified offsets. More... | |
| void | Scale (double scaleX, double scaleY) |
| Appends the specified scale vector to this matrix. More... | |
| void | ScaleAppend (double scaleX, double scaleY) |
| Appends the specified scale vector to this matrix. More... | |
| void | ScalePrepend (double scaleX, double scaleY) |
| Prepends the specified scale vector to this matrix. More... | |
| void | Scale (double scaleX, double scaleY, XMatrixOrder order) |
| Scales the matrix with the specified scalars. More... | |
| void | Scale (double scaleXY) |
| Scales the matrix with the specified scalar. More... | |
| void | ScaleAppend (double scaleXY) |
| Appends the specified scale vector to this matrix. More... | |
| void | ScalePrepend (double scaleXY) |
| Prepends the specified scale vector to this matrix. More... | |
| void | Scale (double scaleXY, XMatrixOrder order) |
| Scales the matrix with the specified scalar. More... | |
| void | ScaleAt (double scaleX, double scaleY, double centerX, double centerY) |
| Function is obsolete. More... | |
| void | ScaleAtAppend (double scaleX, double scaleY, double centerX, double centerY) |
| Apppends the specified scale about the specified point of this matrix. More... | |
| void | ScaleAtPrepend (double scaleX, double scaleY, double centerX, double centerY) |
| Prepends the specified scale about the specified point of this matrix. More... | |
| void | Rotate (double angle) |
| Function is obsolete. More... | |
| void | RotateAppend (double angle) |
| Appends a rotation of the specified angle to this matrix. More... | |
| void | RotatePrepend (double angle) |
| Prepends a rotation of the specified angle to this matrix. More... | |
| void | Rotate (double angle, XMatrixOrder order) |
| Rotates the matrix with the specified angle. More... | |
| void | RotateAt (double angle, double centerX, double centerY) |
| Function is obsolete. More... | |
| void | RotateAtAppend (double angle, double centerX, double centerY) |
| Appends a rotation of the specified angle at the specified point to this matrix. More... | |
| void | RotateAtPrepend (double angle, double centerX, double centerY) |
| Prepends a rotation of the specified angle at the specified point to this matrix. More... | |
| void | RotateAt (double angle, XPoint point) |
| Rotates the matrix with the specified angle at the specified point. More... | |
| void | RotateAtAppend (double angle, XPoint point) |
| Appends a rotation of the specified angle at the specified point to this matrix. More... | |
| void | RotateAtPrepend (double angle, XPoint point) |
| Prepends a rotation of the specified angle at the specified point to this matrix. More... | |
| void | RotateAt (double angle, XPoint point, XMatrixOrder order) |
| Rotates the matrix with the specified angle at the specified point. More... | |
| void | Shear (double shearX, double shearY) |
| Function is obsolete. More... | |
| void | ShearAppend (double shearX, double shearY) |
| Appends a skew of the specified degrees in the x and y dimensions to this matrix. More... | |
| void | ShearPrepend (double shearX, double shearY) |
| Prepends a skew of the specified degrees in the x and y dimensions to this matrix. More... | |
| void | Shear (double shearX, double shearY, XMatrixOrder order) |
| Shears the matrix with the specified scalars. More... | |
| void | Skew (double skewX, double skewY) |
| Function is obsolete. More... | |
| void | SkewAppend (double skewX, double skewY) |
| Appends a skew of the specified degrees in the x and y dimensions to this matrix. More... | |
| void | SkewPrepend (double skewX, double skewY) |
| Prepends a skew of the specified degrees in the x and y dimensions to this matrix. More... | |
| XPoint | Transform (XPoint point) |
| Transforms the specified point by this matrix and returns the result. More... | |
| void | Transform (XPoint[] points) |
| Transforms the specified points by this matrix. More... | |
| void | TransformPoints (XPoint[] points) |
| Multiplies all points of the specified array with the this matrix. More... | |
| void | TransformPoints (System.Windows.Point[] points) |
| Multiplies all points of the specified array with the this matrix. More... | |
| XVector | Transform (XVector vector) |
| Transforms the specified vector by this Matrix and returns the result. More... | |
| void | Transform (XVector[] vectors) |
| Transforms the specified vectors by this matrix. More... | |
| void | Invert () |
| Inverts the matrix. More... | |
| System.Windows.Media.Matrix | ToWpfMatrix () |
| Converts this matrix to a System.Drawing.Drawing2D.Matrix object. More... | |
| override bool | Equals (object o) |
| Determines whether this matrix is equal to the specified object. More... | |
| bool | Equals (XMatrix value) |
| Determines whether this matrix is equal to the specified matrix. More... | |
| override int | GetHashCode () |
| Returns the hash code for this instance. More... | |
| override string | ToString () |
| Converts this XMatrix to a human readable string. More... | |
| string | ToString (IFormatProvider provider) |
| Converts this XMatrix to a human readable string. More... | |
| string IFormattable. | ToString (string format, IFormatProvider provider) |
| Converts this XMatrix to a human readable string. More... | |
| void | SetMatrix (double m11, double m12, double m21, double m22, double offsetX, double offsetY, XMatrixTypes type) |
| Sets the matrix. More... | |
| void | DeriveMatrixType () |
Static Public Member Functions | |
| static XMatrix | operator* (XMatrix trans1, XMatrix trans2) |
| Multiplies two matrices. More... | |
| static XMatrix | Multiply (XMatrix trans1, XMatrix trans2) |
| Multiplies two matrices. More... | |
| static | operator System.Windows.Media.Matrix (XMatrix matrix) |
| Explicitly converts an XMatrix to a Matrix. More... | |
| static implicit | operator XMatrix (System.Windows.Media.Matrix matrix) |
| Implicitly converts a Matrix to an XMatrix. More... | |
| static bool | operator== (XMatrix matrix1, XMatrix matrix2) |
| Determines whether the two matrices are equal. More... | |
| static bool | operator!= (XMatrix matrix1, XMatrix matrix2) |
| Determines whether the two matrices are not equal. More... | |
| static bool | Equals (XMatrix matrix1, XMatrix matrix2) |
| Determines whether the two matrices are equal. More... | |
| static XMatrix | Parse (string source) |
| Parses a matrix from a string. More... | |
| static XMatrix | CreateIdentity () |
| static | XMatrix () |
Public Attributes | |
| double | m11 |
| double | m12 |
| double | m21 |
| double | m22 |
| double | offsetX |
| double | offsetY |
| XMatrixTypes | type |
| int | padding |
Static Public Attributes | |
| static readonly XMatrix | s_identity |
Properties | |
| static XMatrix | Identity [get] |
| Gets a value that indicates whether this matrix is an identity matrix. More... | |
| bool | IsIdentity [get] |
| Gets a value indicating whether this matrix instance is the identity matrix. More... | |
| double[] | Elements [get] |
| Gets an array of double values that represents the elements of this matrix. More... | |
| double | Determinant [get] |
| Gets the determinant of this matrix. More... | |
| bool | HasInverse [get] |
| Gets a value that indicates whether this matrix is invertible. More... | |
| double | M11 [get, set] |
| Gets or sets the value of the first row and first column of this matrix. More... | |
| double | M12 [get, set] |
| Gets or sets the value of the first row and second column of this matrix. More... | |
| double | M21 [get, set] |
| Gets or sets the value of the second row and first column of this matrix. More... | |
| double | M22 [get, set] |
| Gets or sets the value of the second row and second column of this matrix. More... | |
| double | OffsetX [get, set] |
| Gets or sets the value of the third row and first column of this matrix. More... | |
| double | OffsetY [get, set] |
| Gets or sets the value of the third row and second column of this matrix. More... | |
Represents a 3-by-3 matrix that represents an affine 2D transformation.
| PdfSharp.Drawing.XMatrix.XMatrix | ( | double | m11, |
| double | m12, | ||
| double | m21, | ||
| double | m22, | ||
| double | offsetX, | ||
| double | offsetY | ||
| ) |
Initializes a new instance of the XMatrix struct.
|
static |
| void PdfSharp.Drawing.XMatrix.Append | ( | XMatrix | matrix | ) |
Appends the specified matrix to this matrix.
|
static |
| void PdfSharp.Drawing.XMatrix.DeriveMatrixType | ( | ) |
| override bool PdfSharp.Drawing.XMatrix.Equals | ( | object | o | ) |
Determines whether this matrix is equal to the specified object.
Determines whether the two matrices are equal.
| bool PdfSharp.Drawing.XMatrix.Equals | ( | XMatrix | value | ) |
Determines whether this matrix is equal to the specified matrix.
| double [] PdfSharp.Drawing.XMatrix.GetElements | ( | ) |
Gets an array of double values that represents the elements of this matrix.
| override int PdfSharp.Drawing.XMatrix.GetHashCode | ( | ) |
Returns the hash code for this instance.
| void PdfSharp.Drawing.XMatrix.InitIdentity | ( | ) |
Fixes a bug that XMatrixTypes.Identity is not handled correctly in some cases.
| void PdfSharp.Drawing.XMatrix.Invert | ( | ) |
Inverts the matrix.
| void PdfSharp.Drawing.XMatrix.Multiply | ( | XMatrix | matrix | ) |
Appends the specified matrix to this matrix.
| void PdfSharp.Drawing.XMatrix.Multiply | ( | XMatrix | matrix, |
| XMatrixOrder | order | ||
| ) |
Multiplies this matrix with the specified matrix.
Multiplies two matrices.
| void PdfSharp.Drawing.XMatrix.MultiplyPrepend | ( | XMatrix | matrix | ) |
Prepends the specified matrix to this matrix.
|
explicitstatic |
Explicitly converts an XMatrix to a Matrix.
|
static |
Implicitly converts a Matrix to an XMatrix.
Determines whether the two matrices are not equal.
Multiplies two matrices.
Determines whether the two matrices are equal.
|
static |
Parses a matrix from a string.
| void PdfSharp.Drawing.XMatrix.Prepend | ( | XMatrix | matrix | ) |
Prepends the specified matrix to this matrix.
| void PdfSharp.Drawing.XMatrix.Rotate | ( | double | angle | ) |
Function is obsolete.
| void PdfSharp.Drawing.XMatrix.Rotate | ( | double | angle, |
| XMatrixOrder | order | ||
| ) |
Rotates the matrix with the specified angle.
| void PdfSharp.Drawing.XMatrix.RotateAppend | ( | double | angle | ) |
Appends a rotation of the specified angle to this matrix.
| void PdfSharp.Drawing.XMatrix.RotateAt | ( | double | angle, |
| double | centerX, | ||
| double | centerY | ||
| ) |
Function is obsolete.
| void PdfSharp.Drawing.XMatrix.RotateAt | ( | double | angle, |
| XPoint | point | ||
| ) |
Rotates the matrix with the specified angle at the specified point.
| void PdfSharp.Drawing.XMatrix.RotateAt | ( | double | angle, |
| XPoint | point, | ||
| XMatrixOrder | order | ||
| ) |
Rotates the matrix with the specified angle at the specified point.
| void PdfSharp.Drawing.XMatrix.RotateAtAppend | ( | double | angle, |
| double | centerX, | ||
| double | centerY | ||
| ) |
Appends a rotation of the specified angle at the specified point to this matrix.
| void PdfSharp.Drawing.XMatrix.RotateAtAppend | ( | double | angle, |
| XPoint | point | ||
| ) |
Appends a rotation of the specified angle at the specified point to this matrix.
| void PdfSharp.Drawing.XMatrix.RotateAtPrepend | ( | double | angle, |
| double | centerX, | ||
| double | centerY | ||
| ) |
Prepends a rotation of the specified angle at the specified point to this matrix.
| void PdfSharp.Drawing.XMatrix.RotateAtPrepend | ( | double | angle, |
| XPoint | point | ||
| ) |
Prepends a rotation of the specified angle at the specified point to this matrix.
| void PdfSharp.Drawing.XMatrix.RotatePrepend | ( | double | angle | ) |
Prepends a rotation of the specified angle to this matrix.
| void PdfSharp.Drawing.XMatrix.Scale | ( | double | scaleX, |
| double | scaleY | ||
| ) |
Appends the specified scale vector to this matrix.
| void PdfSharp.Drawing.XMatrix.Scale | ( | double | scaleX, |
| double | scaleY, | ||
| XMatrixOrder | order | ||
| ) |
Scales the matrix with the specified scalars.
| void PdfSharp.Drawing.XMatrix.Scale | ( | double | scaleXY | ) |
Scales the matrix with the specified scalar.
| void PdfSharp.Drawing.XMatrix.Scale | ( | double | scaleXY, |
| XMatrixOrder | order | ||
| ) |
Scales the matrix with the specified scalar.
| void PdfSharp.Drawing.XMatrix.ScaleAppend | ( | double | scaleX, |
| double | scaleY | ||
| ) |
Appends the specified scale vector to this matrix.
| void PdfSharp.Drawing.XMatrix.ScaleAppend | ( | double | scaleXY | ) |
Appends the specified scale vector to this matrix.
| void PdfSharp.Drawing.XMatrix.ScaleAt | ( | double | scaleX, |
| double | scaleY, | ||
| double | centerX, | ||
| double | centerY | ||
| ) |
Function is obsolete.
| void PdfSharp.Drawing.XMatrix.ScaleAtAppend | ( | double | scaleX, |
| double | scaleY, | ||
| double | centerX, | ||
| double | centerY | ||
| ) |
Apppends the specified scale about the specified point of this matrix.
| void PdfSharp.Drawing.XMatrix.ScaleAtPrepend | ( | double | scaleX, |
| double | scaleY, | ||
| double | centerX, | ||
| double | centerY | ||
| ) |
Prepends the specified scale about the specified point of this matrix.
| void PdfSharp.Drawing.XMatrix.ScalePrepend | ( | double | scaleX, |
| double | scaleY | ||
| ) |
Prepends the specified scale vector to this matrix.
| void PdfSharp.Drawing.XMatrix.ScalePrepend | ( | double | scaleXY | ) |
Prepends the specified scale vector to this matrix.
| void PdfSharp.Drawing.XMatrix.SetIdentity | ( | ) |
Sets this matrix into an identity matrix.
| void PdfSharp.Drawing.XMatrix.SetMatrix | ( | double | m11, |
| double | m12, | ||
| double | m21, | ||
| double | m22, | ||
| double | offsetX, | ||
| double | offsetY, | ||
| XMatrixTypes | type | ||
| ) |
Sets the matrix.
| void PdfSharp.Drawing.XMatrix.Shear | ( | double | shearX, |
| double | shearY | ||
| ) |
Function is obsolete.
| void PdfSharp.Drawing.XMatrix.Shear | ( | double | shearX, |
| double | shearY, | ||
| XMatrixOrder | order | ||
| ) |
Shears the matrix with the specified scalars.
| void PdfSharp.Drawing.XMatrix.ShearAppend | ( | double | shearX, |
| double | shearY | ||
| ) |
Appends a skew of the specified degrees in the x and y dimensions to this matrix.
| void PdfSharp.Drawing.XMatrix.ShearPrepend | ( | double | shearX, |
| double | shearY | ||
| ) |
Prepends a skew of the specified degrees in the x and y dimensions to this matrix.
| void PdfSharp.Drawing.XMatrix.Skew | ( | double | skewX, |
| double | skewY | ||
| ) |
Function is obsolete.
| void PdfSharp.Drawing.XMatrix.SkewAppend | ( | double | skewX, |
| double | skewY | ||
| ) |
Appends a skew of the specified degrees in the x and y dimensions to this matrix.
| void PdfSharp.Drawing.XMatrix.SkewPrepend | ( | double | skewX, |
| double | skewY | ||
| ) |
Prepends a skew of the specified degrees in the x and y dimensions to this matrix.
| override string PdfSharp.Drawing.XMatrix.ToString | ( | ) |
Converts this XMatrix to a human readable string.
| string PdfSharp.Drawing.XMatrix.ToString | ( | IFormatProvider | provider | ) |
Converts this XMatrix to a human readable string.
| string IFormattable. PdfSharp.Drawing.XMatrix.ToString | ( | string | format, |
| IFormatProvider | provider | ||
| ) |
Converts this XMatrix to a human readable string.
| System.Windows.Media.Matrix PdfSharp.Drawing.XMatrix.ToWpfMatrix | ( | ) |
Converts this matrix to a System.Drawing.Drawing2D.Matrix object.
Transforms the specified point by this matrix and returns the result.
| void PdfSharp.Drawing.XMatrix.Transform | ( | XPoint[] | points | ) |
Transforms the specified points by this matrix.
Transforms the specified vector by this Matrix and returns the result.
| void PdfSharp.Drawing.XMatrix.Transform | ( | XVector[] | vectors | ) |
Transforms the specified vectors by this matrix.
| void PdfSharp.Drawing.XMatrix.TransformPoints | ( | System.Windows.Point[] | points | ) |
Multiplies all points of the specified array with the this matrix.
| void PdfSharp.Drawing.XMatrix.TransformPoints | ( | XPoint[] | points | ) |
Multiplies all points of the specified array with the this matrix.
| void PdfSharp.Drawing.XMatrix.Translate | ( | double | offsetX, |
| double | offsetY | ||
| ) |
Appends a translation of the specified offsets to this matrix.
| void PdfSharp.Drawing.XMatrix.Translate | ( | double | offsetX, |
| double | offsetY, | ||
| XMatrixOrder | order | ||
| ) |
Translates the matrix with the specified offsets.
| void PdfSharp.Drawing.XMatrix.TranslateAppend | ( | double | offsetX, |
| double | offsetY | ||
| ) |
Appends a translation of the specified offsets to this matrix.
| void PdfSharp.Drawing.XMatrix.TranslatePrepend | ( | double | offsetX, |
| double | offsetY | ||
| ) |
Prepends a translation of the specified offsets to this matrix.
| double PdfSharp.Drawing.XMatrix.m11 |
| double PdfSharp.Drawing.XMatrix.m12 |
| double PdfSharp.Drawing.XMatrix.m21 |
| double PdfSharp.Drawing.XMatrix.m22 |
| double PdfSharp.Drawing.XMatrix.offsetX |
| double PdfSharp.Drawing.XMatrix.offsetY |
| int PdfSharp.Drawing.XMatrix.padding |
|
static |
| XMatrixTypes PdfSharp.Drawing.XMatrix.type |
|
get |
Gets the determinant of this matrix.
|
get |
Gets an array of double values that represents the elements of this matrix.
|
get |
Gets a value that indicates whether this matrix is invertible.
|
staticget |
Gets a value that indicates whether this matrix is an identity matrix.
|
get |
Gets a value indicating whether this matrix instance is the identity matrix.
|
getset |
Gets or sets the value of the first row and first column of this matrix.
|
getset |
Gets or sets the value of the first row and second column of this matrix.
|
getset |
Gets or sets the value of the second row and first column of this matrix.
|
getset |
Gets or sets the value of the second row and second column of this matrix.
|
getset |
Gets or sets the value of the third row and first column of this matrix.
|
getset |
Gets or sets the value of the third row and second column of this matrix.