gdiplus: Added GdipCreateMatrix.
This commit is contained in:
parent
eb478be84c
commit
a8322cb1ad
|
@ -98,7 +98,7 @@
|
||||||
@ stdcall GdipCreateMatrix2(long long long long long long ptr)
|
@ stdcall GdipCreateMatrix2(long long long long long long ptr)
|
||||||
@ stub GdipCreateMatrix3
|
@ stub GdipCreateMatrix3
|
||||||
@ stub GdipCreateMatrix3I
|
@ stub GdipCreateMatrix3I
|
||||||
@ stub GdipCreateMatrix
|
@ stdcall GdipCreateMatrix(ptr)
|
||||||
@ stub GdipCreateMetafileFromEmf
|
@ stub GdipCreateMetafileFromEmf
|
||||||
@ stub GdipCreateMetafileFromFile
|
@ stub GdipCreateMetafileFromFile
|
||||||
@ stub GdipCreateMetafileFromStream
|
@ stub GdipCreateMetafileFromStream
|
||||||
|
|
|
@ -70,6 +70,24 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
||||||
|
{
|
||||||
|
if(!matrix)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*matrix = GdipAlloc(sizeof(GpMatrix));
|
||||||
|
if(!*matrix) return OutOfMemory;
|
||||||
|
|
||||||
|
(*matrix)->matrix[0] = 1.0;
|
||||||
|
(*matrix)->matrix[1] = 0.0;
|
||||||
|
(*matrix)->matrix[2] = 0.0;
|
||||||
|
(*matrix)->matrix[3] = 1.0;
|
||||||
|
(*matrix)->matrix[4] = 0.0;
|
||||||
|
(*matrix)->matrix[5] = 0.0;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
||||||
{
|
{
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
|
|
|
@ -86,6 +86,7 @@ GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
|
||||||
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
||||||
|
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
|
||||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
||||||
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
|
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
|
||||||
GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
|
GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
|
||||||
|
|
Loading…
Reference in New Issue