Class incapsulating MatrixTransform property element features. This element defines an arbitrary affine matrix transformation used to manipulate the coordinate systems of elements. More...

Inherits Aspose::Page::XPS::XpsModel::XpsObject.

Public Member Functions

ASPOSE_PAGE_SHARED_API float get_M11 ()
 Gets the M11 element. More...
 
ASPOSE_PAGE_SHARED_API float get_M12 ()
 Gets the M12 element. More...
 
ASPOSE_PAGE_SHARED_API float get_M21 ()
 Gets the M21 element. More...
 
ASPOSE_PAGE_SHARED_API float get_M22 ()
 Gets the M22 element. More...
 
ASPOSE_PAGE_SHARED_API float get_M31 ()
 Gets the M31 element. More...
 
ASPOSE_PAGE_SHARED_API float get_M32 ()
 Gets the M32 element. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsIdentity ()
 Gets a value indicating whether this instance is identity matrix. More...
 
ASPOSE_PAGE_SHARED_API void TransformPoints (System::ArrayPtr< System::Drawing::PointF > points, int32_t startIndex, int32_t numberOfPoints)
 Applies the affine transformation represented by this Matrix to a specified part of array of points. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::PointF TransformPoint (System::Drawing::PointF point)
 Applies the affine transformation represented by this Matrix to a specified point. More...
 
ASPOSE_PAGE_SHARED_API void TransformPoints (System::ArrayPtr< System::Drawing::PointF > points)
 Applies the affine transformation represented by this Matrix to a specified array of points. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF Transform (System::Drawing::RectangleF rect)
 Applies the affine transformation represented by this Matrix to a specified rectangle. More...
 
ASPOSE_PAGE_SHARED_API void Scale (float scaleX, float scaleY, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Applies the specified scale vector (scaleX and scaleY) to this Matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void Scale (float scaleX, float scaleY)
 Applies the specified scale vector (scaleX and scaleY) to this Matrix in default (Prepend) order. More...
 
ASPOSE_PAGE_SHARED_API void Translate (float offsetX, float offsetY, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Applies the specified translation vector to this Matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void Translate (float offsetX, float offsetY)
 Applies the specified translation vector to this Matrix. More...
 
ASPOSE_PAGE_SHARED_API void Multiply (System::SharedPtr< System::Drawing::Drawing2D::Matrix > matrix, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void Multiply (System::SharedPtr< System::Drawing::Drawing2D::Matrix > matrix)
 Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order. More...
 
ASPOSE_PAGE_SHARED_API void Multiply (System::SharedPtr< XpsMatrix > matrix, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void Multiply (System::SharedPtr< XpsMatrix > matrix)
 Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order. More...
 
ASPOSE_PAGE_SHARED_API void Skew (double skewX, double skewY)
 Applies specified skew transformation to this Matrix. More...
 
ASPOSE_PAGE_SHARED_API void Rotate (float angle, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Applies clockwise rotation by angle to this Matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void Rotate (float angle)
 Applies clockwise rotation by angle to this Matrix in default (Prepend) order. More...
 
ASPOSE_PAGE_SHARED_API void RotateAround (float angle, System::Drawing::PointF pivot, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
 Applies clockwise rotation by angle around the pivot to this Matrix in order specified by matrixOrder . More...
 
ASPOSE_PAGE_SHARED_API void RotateAround (float angle, System::Drawing::PointF pivot)
 Applies clockwise rotation by angle around the pivot to this Matrix in default (Prepend) order. More...
 
ASPOSE_PAGE_SHARED_API void Reset ()
 Resets this Matrix to identity matrix. More...
 
ASPOSE_PAGE_SHARED_API int32_t GetHashCode () const override
 Returns a hash code for this instance. More...
 
ASPOSE_PAGE_SHARED_API bool Equals (System::SharedPtr< System::Object > obj) override
 Determines whether the specified System::Object is equal to this instance. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsMatrixClone ()
 Clones this transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API System::String ToString () const override
 Returns the string representation of this XpsMatrix instance. More...
 
- Public Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsObject
ASPOSE_PAGE_SHARED_API void AssertObject ()
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Member Functions

static ASPOSE_PAGE_SHARED_API bool Equals (System::SharedPtr< XpsMatrix > a, System::SharedPtr< XpsMatrix > b)
 The actual implementation. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Protected Member Functions

System::SharedPtr< XpsMatrixInternal > get_Matrix () const
 
 XpsMatrix (System::SharedPtr< System::Xml::XmlNode > matrixNode, System::SharedPtr< XpsContext > context)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsMatrix, CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > matrixNode, System::SharedPtr< XpsContext > context))
 
 XpsMatrix (System::SharedPtr< XpsContext > context, System::SharedPtr< XpsMatrixInternal > matrix)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsMatrix, CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::SharedPtr< XpsMatrixInternal > matrix))
 
 XpsMatrix (System::SharedPtr< XpsContext > context, float M11, float M12, float M21, float M22, float M31, float M32)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsMatrix, CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, float M11, float M12, float M21, float M22, float M31, float M32))
 
ASPOSE_PAGE_SHARED_API void Initialize (System::SharedPtr< System::Xml::XmlElement > element) override
 
ASPOSE_PAGE_SHARED_API void Accept (System::SharedPtr< XpsDocumentVisitor > visitor) override
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsObjectClone (bool deep, System::SharedPtr< XpsContext > context) override
 
ASPOSE_PAGE_SHARED_API void CopySimplePropertyValues (System::SharedPtr< XpsObject > obj) override
 
virtual ASPOSE_PAGE_SHARED_API ~XpsMatrix ()
 
- Protected Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsObject
int32_t get_Id () const
 
System::String get_RawValue () const
 Raw value of a property, i.e. the string attribute value More...
 
void set_RawValue (System::String value)
 Raw value of a property, i.e. the string attribute value More...
 
virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::XpsModel::RegistrationType get_RegistrationType ()
 
void set_xKey (System::String value)
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsObject > > > get_Owners ()
 
 XpsObject (System::SharedPtr< XpsContext > context)
 
virtual ASPOSE_PAGE_SHARED_API void Load ()
 
virtual ASPOSE_PAGE_SHARED_API void NotifyDescendants (bool isAdd=true)
 
virtual ASPOSE_PAGE_SHARED_API void NotifyRoot (System::SharedPtr< XpsEvent > evt)
 
virtual ASPOSE_PAGE_SHARED_API void CopyPropertyValues (System::SharedPtr< XpsObject > obj)
 
virtual ASPOSE_PAGE_SHARED_API void ClonePropertyValues (System::SharedPtr< XpsObject > obj)
 
virtual ASPOSE_PAGE_SHARED_API void AcceptProperties (System::SharedPtr< XpsDocumentVisitor > visitor)
 
virtual ASPOSE_PAGE_SHARED_API void Dispose ()
 

Static Protected Member Functions

static System::SharedPtr< XpsMatrixInternal > XmlNodeToDrMatrix (System::SharedPtr< System::Xml::XmlElement > element)
 
static System::SharedPtr< XpsMatrixInternal > XmlNodeToDrMatrix (System::SharedPtr< System::Xml::XmlNode > node, System::SharedPtr< XpsContext > context)
 

Static Protected Attributes

static int32_t IdentityHash
 

Friends

ASPOSE_PAGE_SHARED_API bool operator== (const System::SharedPtr< XpsMatrix > &a, const System::SharedPtr< XpsMatrix > &b)
 
ASPOSE_PAGE_SHARED_API bool operator!= (const System::SharedPtr< XpsMatrix > &a, const System::SharedPtr< XpsMatrix > &b)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Protected Attributes inherited from Aspose::Page::XPS::XpsModel::XpsObject
System::WeakPtr< XpsContext_context
 

Detailed Description

Class incapsulating MatrixTransform property element features. This element defines an arbitrary affine matrix transformation used to manipulate the coordinate systems of elements.

Constructor & Destructor Documentation

◆ XpsMatrix() [1/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::XpsMatrix ( System::SharedPtr< System::Xml::XmlNode matrixNode,
System::SharedPtr< XpsContext context 
)
protected

◆ XpsMatrix() [2/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::XpsMatrix ( System::SharedPtr< XpsContext context,
System::SharedPtr< XpsMatrixInternal >  matrix 
)
protected

◆ XpsMatrix() [3/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::XpsMatrix ( System::SharedPtr< XpsContext context,
float  M11,
float  M12,
float  M21,
float  M22,
float  M31,
float  M32 
)
protected

◆ ~XpsMatrix()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::XpsModel::XpsMatrix::~XpsMatrix ( )
protectedvirtual

Member Function Documentation

◆ Accept()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Accept ( System::SharedPtr< XpsDocumentVisitor visitor)
overrideprotectedvirtual

◆ Clone() [1/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsMatrix> Aspose::Page::XPS::XpsModel::XpsMatrix::Clone ( )

Clones this transformation matrix.

Returns
Clone of this transformation matrix.

◆ Clone() [2/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsObject> Aspose::Page::XPS::XpsModel::XpsMatrix::Clone ( bool  deep,
System::SharedPtr< XpsContext context 
)
overrideprotectedvirtual

◆ CopySimplePropertyValues()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::CopySimplePropertyValues ( System::SharedPtr< XpsObject obj)
overrideprotectedvirtual

◆ Equals() [1/2]

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::XpsModel::XpsMatrix::Equals ( System::SharedPtr< System::Object obj)
override

Determines whether the specified System::Object is equal to this instance.

Parameters
objThe System::Object to compare with this instance.
Returns
true if the specified System::Object is equal to this instance; otherwise, false.

◆ Equals() [2/2]

static ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::XpsModel::XpsMatrix::Equals ( System::SharedPtr< XpsMatrix a,
System::SharedPtr< XpsMatrix b 
)
static

The actual implementation.

Parameters
aThe first matrix.
bThe second matrix.
Returns
[true] if martrix are equals

◆ get_IsIdentity()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::XpsModel::XpsMatrix::get_IsIdentity ( )

Gets a value indicating whether this instance is identity matrix.

True if this instance is identity matrix; otherwise, false.

◆ get_M11()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M11 ( )

Gets the M11 element.

◆ get_M12()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M12 ( )

Gets the M12 element.

◆ get_M21()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M21 ( )

Gets the M21 element.

◆ get_M22()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M22 ( )

Gets the M22 element.

◆ get_M31()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M31 ( )

Gets the M31 element.

◆ get_M32()

ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::XpsModel::XpsMatrix::get_M32 ( )

Gets the M32 element.

◆ get_Matrix()

System::SharedPtr<XpsMatrixInternal> Aspose::Page::XPS::XpsModel::XpsMatrix::get_Matrix ( ) const
protected

◆ GetHashCode()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::XpsModel::XpsMatrix::GetHashCode ( ) const
overridevirtual

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Reimplemented from System::Object.

◆ Initialize()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Initialize ( System::SharedPtr< System::Xml::XmlElement element)
overrideprotectedvirtual

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsMatrix  ,
CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > matrixNode, System::SharedPtr< XpsContext > context)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsMatrix  ,
CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::SharedPtr< XpsMatrixInternal > matrix)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/3]

Aspose::Page::XPS::XpsModel::XpsMatrix::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsMatrix  ,
CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, float M11, float M12, float M21, float M22, float M31, float M32)   
)
protected

◆ Multiply() [1/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Multiply ( System::SharedPtr< System::Drawing::Drawing2D::Matrix matrix,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder .

Parameters
matrixThe matrix.
matrixOrderThe order.

◆ Multiply() [2/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Multiply ( System::SharedPtr< System::Drawing::Drawing2D::Matrix matrix)

Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order.

Parameters
matrixThe matrix.

◆ Multiply() [3/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Multiply ( System::SharedPtr< XpsMatrix matrix,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder .

Parameters
matrixThe matrix.
matrixOrderThe order.

◆ Multiply() [4/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Multiply ( System::SharedPtr< XpsMatrix matrix)

Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order.

Parameters
matrixThe matrix.

◆ Reset()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Reset ( )

Resets this Matrix to identity matrix.

◆ Rotate() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Rotate ( float  angle,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Applies clockwise rotation by angle to this Matrix in order specified by matrixOrder .

Parameters
angleThe angle.
matrixOrderThe order.

◆ Rotate() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Rotate ( float  angle)

Applies clockwise rotation by angle to this Matrix in default (Prepend) order.

Parameters
angleThe angle.

◆ RotateAround() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::RotateAround ( float  angle,
System::Drawing::PointF  pivot,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Applies clockwise rotation by angle around the pivot to this Matrix in order specified by matrixOrder .

Parameters
angleThe angle.
pivotThe pivot point.
matrixOrderThe order.

◆ RotateAround() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::RotateAround ( float  angle,
System::Drawing::PointF  pivot 
)

Applies clockwise rotation by angle around the pivot to this Matrix in default (Prepend) order.

Parameters
angleThe angle.
pivotThe pivot point.

◆ Scale() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Scale ( float  scaleX,
float  scaleY,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Applies the specified scale vector (scaleX and scaleY) to this Matrix in order specified by matrixOrder .

Parameters
scaleXThe scale X.
scaleYThe scale Y.
matrixOrderThe order.

◆ Scale() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Scale ( float  scaleX,
float  scaleY 
)

Applies the specified scale vector (scaleX and scaleY) to this Matrix in default (Prepend) order.

Parameters
scaleXThe scale x.
scaleYThe scale y.

◆ Skew()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Skew ( double  skewX,
double  skewY 
)

Applies specified skew transformation to this Matrix.

Parameters
skewXThe skew x.
skewYThe skew y.

◆ ToString()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::XPS::XpsModel::XpsMatrix::ToString ( ) const
overridevirtual

Returns the string representation of this XpsMatrix instance.

Returns
String representation

Reimplemented from System::Object.

◆ Transform()

ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF Aspose::Page::XPS::XpsModel::XpsMatrix::Transform ( System::Drawing::RectangleF  rect)

Applies the affine transformation represented by this Matrix to a specified rectangle.

Parameters
rectThe rectangle.
Returns
Transformed rectangle

◆ TransformPoint()

ASPOSE_PAGE_SHARED_API System::Drawing::PointF Aspose::Page::XPS::XpsModel::XpsMatrix::TransformPoint ( System::Drawing::PointF  point)

Applies the affine transformation represented by this Matrix to a specified point.

Parameters
pointThe point.
Returns
Transformed point

◆ TransformPoints() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::TransformPoints ( System::ArrayPtr< System::Drawing::PointF points,
int32_t  startIndex,
int32_t  numberOfPoints 
)

Applies the affine transformation represented by this Matrix to a specified part of array of points.

Parameters
pointsThe points.
startIndexThe start index.
numberOfPointsThe number of points.

◆ TransformPoints() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::TransformPoints ( System::ArrayPtr< System::Drawing::PointF points)

Applies the affine transformation represented by this Matrix to a specified array of points.

Parameters
pointsThe points.

◆ Translate() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Translate ( float  offsetX,
float  offsetY,
System::Drawing::Drawing2D::MatrixOrder  matrixOrder 
)

Applies the specified translation vector to this Matrix in order specified by matrixOrder .

Parameters
offsetXThe offset X.
offsetYThe offset Y.
matrixOrderThe order.

◆ Translate() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsMatrix::Translate ( float  offsetX,
float  offsetY 
)

Applies the specified translation vector to this Matrix.

Parameters
offsetXThe offset X.
offsetYThe offset Y.

◆ XmlNodeToDrMatrix() [1/2]

static System::SharedPtr<XpsMatrixInternal> Aspose::Page::XPS::XpsModel::XpsMatrix::XmlNodeToDrMatrix ( System::SharedPtr< System::Xml::XmlElement element)
staticprotected

◆ XmlNodeToDrMatrix() [2/2]

static System::SharedPtr<XpsMatrixInternal> Aspose::Page::XPS::XpsModel::XpsMatrix::XmlNodeToDrMatrix ( System::SharedPtr< System::Xml::XmlNode node,
System::SharedPtr< XpsContext context 
)
staticprotected

Friends And Related Function Documentation

◆ operator!=

ASPOSE_PAGE_SHARED_API bool operator!= ( const System::SharedPtr< XpsMatrix > &  a,
const System::SharedPtr< XpsMatrix > &  b 
)
friend

◆ operator==

ASPOSE_PAGE_SHARED_API bool operator== ( const System::SharedPtr< XpsMatrix > &  a,
const System::SharedPtr< XpsMatrix > &  b 
)
friend

Member Data Documentation

◆ IdentityHash

int32_t Aspose::Page::XPS::XpsModel::XpsMatrix::IdentityHash
staticprotected