Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.51 KB

File metadata and controls

65 lines (46 loc) · 1.51 KB

Home

Function name : GdipGetMatrixElements

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.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipGetMatrixElements(
	GDIPCONST GpMatrix *matrix,
	REAL *matrixOut
)
  

FoxPro declaration:

DECLARE INTEGER GdipGetMatrixElements IN gdiplus;
	INTEGER matrix,;
	STRING @matrixOut  

Parameters:

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).


Return value:

Returns GpStatus value; 0 means success.


Comments:

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)))  
ENDIF

See also: GdipSetMatrixElements.