Interface IGDIPlus.IGPMatrix
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Contents |
Syntax
Delphi:
type IGPMatrix = interface
Summary
Interface to a TGPMatrix object.
Description
Defines interface to a TGPMatrix object.
A TGPMatrix object represents a 3×3 matrix that, in turn, represents an affine transformation. A Matrix object stores only six of the 9 numbers in a 3×3 matrix because all 3×3 matrices that represent affine transformations have the same third column (0, 0, 1).
Properties
- Elements - Gets or sets the elements of the matrix.
Methods
- function GetNativeMatrix() : GpMatrix
- function Clone() : TGPMatrix - Creates a new Matrix object that is a copy of this Matrix object.
- function GetElements() : TGPMatrixParams - Returns the elements of the matrix.
- function SetElements(m11 : Single; m12 : Single; m21 : Single; m22 : Single; dx : Single; dy : Single) : TGPMatrix - Sets the elements of the matrix.
- function SetElements(AElements : TGPMatrixParams) : TGPMatrix - Sets the elements of the matrix.
- procedure SetElementsProp(AElements : TGPMatrixParams)
- function OffsetX() : Single - Returns the horizontal translation value of the matrix, which is the element in row 3, column 1.
- function OffsetY() : Single - Returns the vertical translation value of the matrix, which is the element in row 3, column 2.
- function Reset() : TGPMatrix - Updates this matrix with the elements of the identity matrix.
- function Multiply(matrix : IGPMatrix; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and another matrix.
- function Translate(offsetX : Single; offsetY : Single; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and a translation matrix.
- function Scale(scaleX : Single; scaleY : Single; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and a scaling matrix.
- function Rotate(angle : Single; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and a rotation matrix.
- function RotateAt(angle : Single; center : TGPPointF; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and a matrix that represents rotation about a specified point.
- function Shear(shearX : Single; shearY : Single; order : TGPMatrixOrder) : TGPMatrix - Updates the matrix with the product of itself and a shearing matrix.
- function Invert() : TGPMatrix - Replaces the elements of the matrix with the elements of its inverse.
- function TransformPointF(var point : TGPPointF) : TGPMatrix - Multiplies point by the matrix.
- function TransformPoint(var point : TGPPoint) : TGPMatrix - Multiplies point by the matrix.
- function TransformPointsF(var pts : array) : TGPMatrix
- function TransformPoints(var pts : array) : TGPMatrix
- function TransformVectorsF(var pts : array) : TGPMatrix
- function TransformVectors(var pts : array) : TGPMatrix
- function IsInvertible() : Boolean - Determines whether the matrix is invertible.
- function IsIdentity() : Boolean - Determines whether the matrix is the identity matrix.
- function Equals(matrix : IGPMatrix) : Boolean - Determines whether the elements of this matrix are equal to the elements of another matrix.