Aspose::Font::TransformationMatrix class

TransformationMatrix class

Represents 3x3 transformation matrix | A B 0 | | C D 0 | | TX TY 1 |.

class TransformationMatrix : public System::ICloneable

Methods

MethodDescription
get_A()Gets A transformation matrix value.
get_B()Gets B transformation matrix value.
get_C()Gets C transformation matrix value.
get_D()Gets D transformation matrix value.
get_TX()Gets TX transformation matrix value.
get_TY()Gets TY transformation matrix value.
idx_get(int32_t)Provides access to underlying array.
Multiply(System::SharedPtr<TransformationMatrix>)Multiplies with another transformation matrix. Doesn’t change original transformation matrix, returns a new TransformationMatrix object.
Scale(double, double, double&, double&)Scales x and y with the transformation matrix: x1 = Ax + Cy; y1 = Bx + Dy.
set_A(double)Sets A transformation matrix value.
set_B(double)Sets B transformation matrix value.
set_C(double)Sets C transformation matrix value.
set_D(double)Sets D transformation matrix value.
set_TX(double)Sets TX transformation matrix value.
set_TY(double)Sets TY transformation matrix value.
ToArray()Allocates new array, copies the transformation matrix and returns it.
Transform(double, double, double&, double&)Transforms x and y with the transformation matrix: x1 = Ax + Cy + TX; y1 = Bx + Dy + TY.
TransformationMatrix()Creates standard 1 to 1 transformation matrix: [ A B C D TX TY ] = [ 1, 0, 0, 1, 0, 0].
TransformationMatrix(System::ArrayPtr<double>)Accepts a transformation matrix with following array representation: [ A B C D TX TY ].
UnScale(double, double, double&, double&)Scales back x1 and y1 and returns x and y before the transformation matrix.
UnTransform(double, double, double&, double&)Transforms back x1 and y1 and returns x and y before the transformation matrix.

Remarks

Transforms coordinates in the following way: x1 = Ax + Cy + TX; y1 = Bx + Dy + TY.

See Also