Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Matrix
GdipCreateMatrix
GdipCreateMatrix2
GdipDeleteMatrix
GdipGetMatrixElements
GdipInvertMatrix
GdipRotateMatrix
GdipScaleMatrix
GdipSetMatrixElements
GdipShearMatrix
GdipTranslateMatrix
Code examples:
Custom GDI+ class
GdipGetMatrixElements
..msdn    Add comment     W32 Constants      Translate this page
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.
My comment:
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.
Word Index links for the GdipGetMatrixElements :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2007-03-05 23:13:45
Modified: 2007-03-05 23:19:12
Visited in last 7 days: 17
User Contributed Notes:
There are no notes on this subject.


Copyright ฉ 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.162.154.91)
15 sec.Function: 'GdipGetFontCollectionFamilyList'
28 sec.Function: 'GetMonitorBrightness'
40 sec.Function: 'FillRect'
53 sec.Function: 'AttachVirtualDisk'
1.1 min.
Function group: 'Atom'
1.37 min.
Function group: 'IP Helper'
1.6 min.
Function group: 'GDI+ Text'
1.82 min.Function: 'AVIFileOpen'
2.03 min.Function: 'AVIFileInit'
2.25 min.Function: 'GdipCreateMatrix'
Google
Advertise here!