gdiplus: Implemented GdipIsMatrixIdentity.
This commit is contained in:
parent
6dd720dcb5
commit
93f6601d03
@ -419,7 +419,7 @@
|
|||||||
@ stub GdipIsEqualRegion
|
@ stub GdipIsEqualRegion
|
||||||
@ stub GdipIsInfiniteRegion
|
@ stub GdipIsInfiniteRegion
|
||||||
@ stdcall GdipIsMatrixEqual(ptr ptr ptr)
|
@ stdcall GdipIsMatrixEqual(ptr ptr ptr)
|
||||||
@ stub GdipIsMatrixIdentity
|
@ stdcall GdipIsMatrixIdentity(ptr ptr)
|
||||||
@ stub GdipIsMatrixInvertible
|
@ stub GdipIsMatrixInvertible
|
||||||
@ stub GdipIsOutlineVisiblePathPoint
|
@ stub GdipIsOutlineVisiblePathPoint
|
||||||
@ stdcall GdipIsOutlineVisiblePathPointI(ptr long long ptr ptr ptr)
|
@ stdcall GdipIsOutlineVisiblePathPointI(ptr long long ptr ptr ptr)
|
||||||
|
@ -366,3 +366,24 @@ GpStatus WINGDIPAPI GdipIsMatrixEqual(GDIPCONST GpMatrix *matrix, GDIPCONST GpMa
|
|||||||
|
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipIsMatrixIdentity(GDIPCONST GpMatrix *matrix, BOOL *result)
|
||||||
|
{
|
||||||
|
GpMatrix *e;
|
||||||
|
GpStatus ret;
|
||||||
|
BOOL isIdentity;
|
||||||
|
|
||||||
|
if(!matrix || !result)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
ret = GdipCreateMatrix(&e);
|
||||||
|
if(ret != Ok) return ret;
|
||||||
|
|
||||||
|
ret = GdipIsMatrixEqual(matrix, e, &isIdentity);
|
||||||
|
if(ret == Ok)
|
||||||
|
*result = isIdentity;
|
||||||
|
|
||||||
|
GdipFree(e);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
@ -238,6 +238,7 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
|||||||
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *,GDIPCONST GpPointF*,GpMatrix**);
|
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *,GDIPCONST GpPointF*,GpMatrix**);
|
||||||
GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect*,GDIPCONST GpPoint*,GpMatrix**);
|
GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect*,GDIPCONST GpPoint*,GpMatrix**);
|
||||||
GpStatus WINGDIPAPI GdipIsMatrixEqual(GDIPCONST GpMatrix*, GDIPCONST GpMatrix*, BOOL*);
|
GpStatus WINGDIPAPI GdipIsMatrixEqual(GDIPCONST GpMatrix*, GDIPCONST GpMatrix*, BOOL*);
|
||||||
|
GpStatus WINGDIPAPI GdipIsMatrixIdentity(GDIPCONST GpMatrix*, BOOL*);
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
||||||
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix*,REAL*);
|
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix*,REAL*);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user