gdiplus: Added GdipCloneMatrix.
This commit is contained in:
parent
8162139553
commit
eab427ee3f
|
@ -49,7 +49,7 @@
|
||||||
@ stub GdipCloneFontFamily
|
@ stub GdipCloneFontFamily
|
||||||
@ stub GdipCloneImage
|
@ stub GdipCloneImage
|
||||||
@ stub GdipCloneImageAttributes
|
@ stub GdipCloneImageAttributes
|
||||||
@ stub GdipCloneMatrix
|
@ stdcall GdipCloneMatrix(ptr ptr)
|
||||||
@ stub GdipClonePath
|
@ stub GdipClonePath
|
||||||
@ stdcall GdipClonePen(ptr ptr)
|
@ stdcall GdipClonePen(ptr ptr)
|
||||||
@ stub GdipCloneRegion
|
@ stub GdipCloneRegion
|
||||||
|
|
|
@ -70,6 +70,19 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
|
||||||
|
{
|
||||||
|
if(!matrix || !clone)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*clone = GdipAlloc(sizeof(GpMatrix));
|
||||||
|
if(!*clone) return OutOfMemory;
|
||||||
|
|
||||||
|
memcpy(*clone, matrix, sizeof(GpMatrix));
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
||||||
{
|
{
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
|
|
|
@ -101,6 +101,7 @@ GpStatus WINGDIPAPI GdipResetPath(GpPath*);
|
||||||
GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
|
GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
|
||||||
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix*,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 GdipCreateMatrix(GpMatrix**);
|
||||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
||||||
|
|
Loading…
Reference in New Issue