gdiplus: Added GdipCreateMatrix.

This commit is contained in:
Evan Stade 2007-07-19 18:22:31 -07:00 committed by Alexandre Julliard
parent eb478be84c
commit a8322cb1ad
3 changed files with 20 additions and 1 deletions

View file

@ -98,7 +98,7 @@
@ stdcall GdipCreateMatrix2(long long long long long long ptr)
@ stub GdipCreateMatrix3
@ stub GdipCreateMatrix3I
@ stub GdipCreateMatrix
@ stdcall GdipCreateMatrix(ptr)
@ stub GdipCreateMetafileFromEmf
@ stub GdipCreateMetafileFromFile
@ stub GdipCreateMetafileFromStream

View file

@ -70,6 +70,24 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
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)
{
if(!matrix)

View file

@ -86,6 +86,7 @@ GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);