Group: GDI+ Matrix - Library: gdiplus
Gets the elements of this matrix. The elements are placed in an array in the order m11, m12, m21, m22, m31, m32, where mij denotes the element in row i, column j.
GpStatus WINGDIPAPI GdipGetMatrixElements(
GDIPCONST GpMatrix *matrix,
REAL *matrixOut
)
DECLARE INTEGER GdipGetMatrixElements IN gdiplus;
INTEGER matrix,;
STRING @matrixOut matrix [in] Handle to a Matrix object.
matrixOut [out] Pointer to an array that receives the matrix elements. The size of the array should be 6 �sizeof( REAL).
Returns GpStatus value; 0 means success.
cCoords = REPLICATE(CHR(0), 24)
IF GdipGetMatrixElements(m.hmatrix, @m.cCoords) = 0
m11 = Float2Int(buf2dword(SUBSTR(m.cCoords, 1,4)))
m12 = Float2Int(buf2dword(SUBSTR(m.cCoords, 5,4)))
m21 = Float2Int(buf2dword(SUBSTR(m.cCoords, 9,4)))
m22 = Float2Int(buf2dword(SUBSTR(m.cCoords, 13,4)))
dx = Float2Int(buf2dword(SUBSTR(m.cCoords, 17,4)))
dy = Float2Int(buf2dword(SUBSTR(m.cCoords, 21,4)))
ENDIFSee also: GdipSetMatrixElements.
Home