gdiplus: Added GdipSetMatrixElements.

This commit is contained in:
Evan Stade 2007-07-31 19:15:41 -07:00 committed by Alexandre Julliard
parent dd5e9a91f3
commit ad251e7fe3
3 changed files with 18 additions and 1 deletions

View File

@ -543,7 +543,7 @@
@ stub GdipSetLineSigmaBlend
@ stub GdipSetLineTransform
@ stub GdipSetLineWrapMode
@ stub GdipSetMatrixElements
@ stdcall GdipSetMatrixElements(ptr long long long long long long)
@ stub GdipSetMetafileDownLevelRasterizationLimit
@ stdcall GdipSetPageScale(ptr long)
@ stdcall GdipSetPageUnit(ptr long)

View File

@ -186,6 +186,22 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
return Ok;
}
GpStatus WINGDIPAPI GdipSetMatrixElements(GpMatrix *matrix, REAL m11, REAL m12,
REAL m21, REAL m22, REAL dx, REAL dy)
{
if(!matrix)
return InvalidParameter;
matrix->matrix[0] = m11;
matrix->matrix[1] = m12;
matrix->matrix[2] = m21;
matrix->matrix[3] = m22;
matrix->matrix[4] = dx;
matrix->matrix[5] = dy;
return Ok;
}
GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts,
INT count)
{

View File

@ -120,6 +120,7 @@ GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix*,REAL*);
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix*,REAL,REAL,GpMatrixOrder);
GpStatus WINGDIPAPI GdipSetMatrixElements(GpMatrix*,REAL,REAL,REAL,REAL,REAL,REAL);
GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix*,GpPointF*,INT);
GpStatus WINGDIPAPI GdipTranslateMatrix(GpMatrix*,REAL,REAL,GpMatrixOrder);