PdfMatrix struct
Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack
A 2D affine transform in PDF order [a b c d e f]: x’ = a x + c y + e, y’ = b x + d y + f.
public readonly record struct PdfMatrix : IEquatable<PdfMatrix>Implements
Constructors
Section titled “Constructors”PdfMatrix(double, double, double, double, double, double)
Section titled “ PdfMatrix(double, double, double, double, double, double)”A 2D affine transform in PDF order [a b c d e f]: x’ = a x + c y + e, y’ = b x + d y + f.
public PdfMatrix(double A, double B, double C, double D, double E, double F)Parameters
Section titled “Parameters”A double
Horizontal scale component.
B double
Vertical shear component.
C double
Horizontal shear component.
D double
Vertical scale component.
E double
Horizontal translation.
F double
Vertical translation.
Properties
Section titled “Properties”Horizontal scale component.
public double A { get; init; }Property Value
Section titled “Property Value”Vertical shear component.
public double B { get; init; }Property Value
Section titled “Property Value”Horizontal shear component.
public double C { get; init; }Property Value
Section titled “Property Value”Vertical scale component.
public double D { get; init; }Property Value
Section titled “Property Value”Horizontal translation.
public double E { get; init; }Property Value
Section titled “Property Value”Vertical translation.
public double F { get; init; }Property Value
Section titled “Property Value”Identity
Section titled “ Identity”The identity transform.
public static PdfMatrix Identity { get; }Property Value
Section titled “Property Value”IsInvertible
Section titled “ IsInvertible”True when the transform can be inverted.
public bool IsInvertible { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”CreateRotation(double)
Section titled “ CreateRotation(double)”A rotation about the origin. On the canvas, whose y axis points down, positive angles turn clockwise, as in CSS.
public static PdfMatrix CreateRotation(double degrees)Parameters
Section titled “Parameters”degrees double
Returns
Section titled “Returns”CreateScale(double, double)
Section titled “ CreateScale(double, double)”A scale about the origin.
public static PdfMatrix CreateScale(double sx, double sy)Parameters
Section titled “Parameters”sx double
sy double
Returns
Section titled “Returns”CreateSkew(double, double)
Section titled “ CreateSkew(double, double)”A skew by the given angles, in degrees.
public static PdfMatrix CreateSkew(double degreesX, double degreesY)Parameters
Section titled “Parameters”degreesX double
degreesY double
Returns
Section titled “Returns”CreateTranslation(double, double)
Section titled “ CreateTranslation(double, double)”A translation.
public static PdfMatrix CreateTranslation(double dx, double dy)Parameters
Section titled “Parameters”dx double
dy double
Returns
Section titled “Returns”Invert()
Section titled “ Invert()”The inverse transform.
public PdfMatrix Invert()Returns
Section titled “Returns”Exceptions
Section titled “Exceptions”The transform is singular.
Multiply(PdfMatrix, PdfMatrix)
Section titled “ Multiply(PdfMatrix, PdfMatrix)”The transform that applies first, then second.
public static PdfMatrix Multiply(PdfMatrix first, PdfMatrix second)Parameters
Section titled “Parameters”first PdfMatrix
second PdfMatrix
Returns
Section titled “Returns”Transform(PdfPoint)
Section titled “ Transform(PdfPoint)”Applies the transform to a point.
public PdfPoint Transform(PdfPoint point)Parameters
Section titled “Parameters”point PdfPoint