gdiplus: Added GdipSetPageUnit.
This commit is contained in:
parent
6467526469
commit
10b575bc86
|
@ -306,7 +306,7 @@
|
|||
@ stub GdipGetMetafileHeaderFromWmf
|
||||
@ stub GdipGetNearestColor
|
||||
@ stub GdipGetPageScale
|
||||
@ stub GdipGetPageUnit
|
||||
@ stdcall GdipGetPageUnit(ptr ptr)
|
||||
@ stub GdipGetPathData
|
||||
@ stdcall GdipGetPathFillMode(ptr ptr)
|
||||
@ stub GdipGetPathGradientBlend
|
||||
|
@ -525,7 +525,7 @@
|
|||
@ stub GdipSetMatrixElements
|
||||
@ stub GdipSetMetafileDownLevelRasterizationLimit
|
||||
@ stub GdipSetPageScale
|
||||
@ stub GdipSetPageUnit
|
||||
@ stdcall GdipSetPageUnit(ptr long)
|
||||
@ stdcall GdipSetPathFillMode(ptr long)
|
||||
@ stub GdipSetPathGradientBlend
|
||||
@ stub GdipSetPathGradientCenterColor
|
||||
|
|
|
@ -65,6 +65,7 @@ struct GpGraphics{
|
|||
CompositingQuality compqual;
|
||||
InterpolationMode interpolation;
|
||||
PixelOffsetMode pixeloffset;
|
||||
GpUnit unit; /* page unit */
|
||||
};
|
||||
|
||||
struct GpBrush{
|
||||
|
|
|
@ -701,6 +701,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
|
|||
(*graphics)->compqual = CompositingQualityDefault;
|
||||
(*graphics)->interpolation = InterpolationModeDefault;
|
||||
(*graphics)->pixeloffset = PixelOffsetModeDefault;
|
||||
(*graphics)->unit = UnitDisplay;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
@ -1018,6 +1019,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit)
|
||||
{
|
||||
if(!graphics || !unit)
|
||||
return InvalidParameter;
|
||||
|
||||
*unit = graphics->unit;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
/* FIXME: Pixel offset mode is not used anywhere except the getter/setter. */
|
||||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
||||
*mode)
|
||||
|
@ -1083,6 +1094,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)
|
||||
{
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
graphics->unit = unit;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
||||
mode)
|
||||
{
|
||||
|
|
|
@ -62,12 +62,14 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
|
|||
GpFillMode);
|
||||
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
|
||||
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
||||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
||||
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
|
||||
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
|
||||
GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*);
|
||||
GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);
|
||||
GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
|
||||
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
|
||||
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
|
||||
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
|
||||
|
||||
|
|
Loading…
Reference in New Issue