Click or drag to resize

PdfMatrix Class

Represents a double precision 3x3 affine transformation matrix. An affine matrix can be represented by 6 numbers in the first two columns. [A, C, 0] [B, D, 0] [E, F, 1]
Inheritance Hierarchy
SystemObject
  Opait.Pdf.ApiPdfMatrix

Namespace:  Opait.Pdf.Api
Assembly:  Opait.Pdf.Api (in Opait.Pdf.Api.dll) Version: 1.3.3.0
Syntax
C#
public class PdfMatrix : IEquatable<PdfMatrix>

The PdfMatrix type exposes the following members.

Constructors
  NameDescription
Public methodPdfMatrix(IReadOnlyListDouble)
Initializes a new instance using an array of elements
Public methodPdfMatrix(PdfMatrix)
Initializes a new instance of the PdfMatrix class from another specified PdfMatrix.
Public methodPdfMatrix(String)
Initializes a new instance using a serialized, and space separated, string. Compatible with the output from the ToString() metheod.
Public methodPdfMatrix(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the PdfMatrix class with the specified elements.
Top
Properties
  NameDescription
Public propertyDeterminant
Returns the determinant of the rotation matrix.
Public propertyInverse
Gets the inverse of the current matrix.
Public propertyIsIdentity
Gets a value indicating whether this PdfMatrix is the identity matrix.
Public propertyIsInvertible
Gets a value indicating whether this PdfMatrix is invertible.
Public propertyOffsetX
Gets the x translation value of this PdfMatrix.
Public propertyOffsetY
Gets the y translation value of this PdfMatrix.
Public propertyScaleX
Gets the horizontal scaling factor of this PdfMatrix.
Public propertyScaleY
Gets the vertical scaling factor of this PdfMatrix.
Top
Methods
  NameDescription
Public methodConcatenate
Concatenates this PdfMatrix by the specified matrix, by prepending the specified PdfMatrix.
Public methodStatic memberCreate
Creates a PdfMatrix with the specified attributes.
Public methodEquals(Object)
Specifies whether this PdfMatrix contains the same values as the specified Object.
(Overrides ObjectEquals(Object).)
Public methodEquals(PdfMatrix)
Specifies whether this PdfMatrix contains the same values as the specified PdfMatrix.
Public methodStatic memberFlipMatrix
Creates a PdfMatrix to represent flipping horizontally, vertically or both.
Public methodGetHashCode
Returns the hash code for this PdfMatrix.
(Overrides ObjectGetHashCode.)
Public methodInvert
Inverts this PdfMatrix. PdfMatrix must be invertible.
Public methodStatic memberMultiply
Compute a new transformation matrix by multiplying two existing matrices.
Public methodRotate
Prepends to this PdfMatrix a clockwise rotation, around the origin and by the specified angle.
Public methodStatic memberRotateFlipMatrix
Creates a PDF matrix from parameters of a rotate/flip operation.
Public methodStatic memberRotationAtMatrix
Creates a PdfMatrix to represent a translation followed by rotation by the specified values.
Public methodStatic memberRotationMatrix
Creates a PdfMatrix to represent a rotation by the specified angle.
Public methodScale
Applies the specified scale vector to this PdfMatrix by prepending the scale vector.
Public methodStatic memberScalingMatrix
Creates a PdfMatrix to represent scaling by the specified amounts.
Public methodShear
Applies the specified shear vector to this PdfMatrix by prepending the shear vector.
Public methodStatic memberShearMatrix
Creates a PdfMatrix to represent shearing by the specified amounts.
Public methodToArray
Converts the matrix to an array of 6 double precision numbers.
Public methodToPixAffine
Converts the matrix to array of 6 floats in the order that is expected by Leptonica affine transforms.
Public methodToString
Converts this PdfMatrix to a human-readable string.
(Overrides ObjectToString.)
Public methodTransform(PdfPoint)
Transform a point using this PdfMatrix.
Public methodTransform(PdfRectangle)
Transform a rectangle using this PdfMatrix.
Public methodTranslate
Applies the specified translation vector to this PdfMatrix by prepending the translation vector.
Public methodStatic memberTranslationMatrix
Creates a PdfMatrix to represent translation by the specified amounts.
Top
Fields
  NameDescription
Public fieldA
Gets the M11 element of the affine matrix.
Public fieldB
Gets the M21 element of the affine matrix.
Public fieldC
Gets the M12 element of the affine matrix.
Public fieldD
Gets the M22 element of the affine matrix.
Public fieldE
Gets the DX element of the affine matrix.
Public fieldF
Gets the DY element of the affine matrix.
Public fieldStatic memberIdentityMatrix
A PdfMatrix that represents the identity matrix.
Top
See Also