mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
gdiplus: Added GdipCreateMatrix3.
This commit is contained in:
parent
ad251e7fe3
commit
7b601148d5
@ -105,7 +105,7 @@
|
||||
@ stub GdipCreateLineBrushFromRectWithAngleI
|
||||
@ stub GdipCreateLineBrushI
|
||||
@ stdcall GdipCreateMatrix2(long long long long long long ptr)
|
||||
@ stub GdipCreateMatrix3
|
||||
@ stdcall GdipCreateMatrix3(ptr ptr ptr)
|
||||
@ stub GdipCreateMatrix3I
|
||||
@ stdcall GdipCreateMatrix(ptr)
|
||||
@ stdcall GdipCreateMetafileFromEmf(ptr long ptr)
|
||||
|
@ -70,6 +70,23 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect,
|
||||
GDIPCONST GpPointF *pt, GpMatrix **matrix)
|
||||
{
|
||||
if(!matrix)
|
||||
return InvalidParameter;
|
||||
|
||||
*matrix = GdipAlloc(sizeof(GpMatrix));
|
||||
if(!*matrix) return OutOfMemory;
|
||||
|
||||
memcpy((*matrix)->matrix, rect, 4 * sizeof(REAL));
|
||||
|
||||
(*matrix)->matrix[4] = pt->X;
|
||||
(*matrix)->matrix[5] = pt->Y;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
|
||||
{
|
||||
if(!matrix || !clone)
|
||||
|
@ -114,6 +114,8 @@ GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix*,GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *,GDIPCONST GpPointF*,
|
||||
GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
||||
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix*,REAL*);
|
||||
|
Loading…
Reference in New Issue
Block a user