gdiplus: Added GdipSetTextRenderingHint/GdipGetTextRenderingHint.
This commit is contained in:
parent
ee59d41441
commit
5662820072
@ -396,7 +396,7 @@
|
|||||||
@ stub GdipGetStringFormatTabStops
|
@ stub GdipGetStringFormatTabStops
|
||||||
@ stub GdipGetStringFormatTrimming
|
@ stub GdipGetStringFormatTrimming
|
||||||
@ stub GdipGetTextContrast
|
@ stub GdipGetTextContrast
|
||||||
@ stub GdipGetTextRenderingHint
|
@ stdcall GdipGetTextRenderingHint(ptr ptr)
|
||||||
@ stub GdipGetTextureImage
|
@ stub GdipGetTextureImage
|
||||||
@ stub GdipGetTextureTransform
|
@ stub GdipGetTextureTransform
|
||||||
@ stub GdipGetTextureWrapMode
|
@ stub GdipGetTextureWrapMode
|
||||||
@ -594,7 +594,7 @@
|
|||||||
@ stub GdipSetStringFormatTabStops
|
@ stub GdipSetStringFormatTabStops
|
||||||
@ stub GdipSetStringFormatTrimming
|
@ stub GdipSetStringFormatTrimming
|
||||||
@ stub GdipSetTextContrast
|
@ stub GdipSetTextContrast
|
||||||
@ stub GdipSetTextRenderingHint
|
@ stdcall GdipSetTextRenderingHint(ptr long)
|
||||||
@ stdcall GdipSetTextureTransform(ptr ptr)
|
@ stdcall GdipSetTextureTransform(ptr ptr)
|
||||||
@ stub GdipSetTextureWrapMode
|
@ stub GdipSetTextureWrapMode
|
||||||
@ stdcall GdipSetWorldTransform(ptr ptr)
|
@ stdcall GdipSetWorldTransform(ptr ptr)
|
||||||
|
@ -80,6 +80,7 @@ struct GpGraphics{
|
|||||||
InterpolationMode interpolation;
|
InterpolationMode interpolation;
|
||||||
PixelOffsetMode pixeloffset;
|
PixelOffsetMode pixeloffset;
|
||||||
CompositingMode compmode;
|
CompositingMode compmode;
|
||||||
|
TextRenderingHint texthint;
|
||||||
GpUnit unit; /* page unit */
|
GpUnit unit; /* page unit */
|
||||||
REAL scale; /* page scale */
|
REAL scale; /* page scale */
|
||||||
GpMatrix * worldtrans; /* world transform */
|
GpMatrix * worldtrans; /* world transform */
|
||||||
|
@ -1686,6 +1686,18 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
|
|||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FIXME: Text rendering hint is not used anywhere except the getter/setter. */
|
||||||
|
GpStatus WINGDIPAPI GdipGetTextRenderingHint(GpGraphics *graphics,
|
||||||
|
TextRenderingHint *hint)
|
||||||
|
{
|
||||||
|
if(!graphics || !hint)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*hint = graphics->texthint;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
||||||
{
|
{
|
||||||
if(!graphics || !matrix)
|
if(!graphics || !matrix)
|
||||||
@ -1813,6 +1825,17 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mod
|
|||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics *graphics,
|
||||||
|
TextRenderingHint hint)
|
||||||
|
{
|
||||||
|
if(!graphics)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
graphics->texthint = hint;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
||||||
{
|
{
|
||||||
if(!graphics || !matrix)
|
if(!graphics || !matrix)
|
||||||
|
@ -204,6 +204,16 @@ enum CompositingMode
|
|||||||
CompositingModeSourceCopy
|
CompositingModeSourceCopy
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum TextRenderingHint
|
||||||
|
{
|
||||||
|
TextRenderingHintSystemDefault = 0,
|
||||||
|
TextRenderingHintSingleBitPerPixelGridFit,
|
||||||
|
TextRenderingHintSingleBitPerPixel,
|
||||||
|
TextRenderingHintAntiAliasGridFit,
|
||||||
|
TextRenderingHintAntiAlias,
|
||||||
|
TextRenderingHintClearTypeGridFit
|
||||||
|
};
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
||||||
typedef enum Unit Unit;
|
typedef enum Unit Unit;
|
||||||
@ -226,6 +236,7 @@ typedef enum MetafileType MetafileType;
|
|||||||
typedef enum LinearGradientMode LinearGradientMode;
|
typedef enum LinearGradientMode LinearGradientMode;
|
||||||
typedef enum EmfType EmfType;
|
typedef enum EmfType EmfType;
|
||||||
typedef enum CompositingMode CompositingMode;
|
typedef enum CompositingMode CompositingMode;
|
||||||
|
typedef enum TextRenderingHint TextRenderingHint;
|
||||||
|
|
||||||
#endif /* end of c typedefs */
|
#endif /* end of c typedefs */
|
||||||
|
|
||||||
|
@ -92,6 +92,7 @@ GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
|||||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics*,GpUnit*);
|
||||||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics*,PixelOffsetMode*);
|
||||||
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
|
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
|
||||||
|
GpStatus WINGDIPAPI GdipGetTextRenderingHint(GpGraphics*,TextRenderingHint*);
|
||||||
GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics*,GpMatrix*);
|
GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics*,GpMatrix*);
|
||||||
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
|
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
|
||||||
GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics*,REAL,GpMatrixOrder);
|
GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics*,REAL,GpMatrixOrder);
|
||||||
@ -104,6 +105,7 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics*,REAL);
|
|||||||
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
|
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
|
||||||
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
|
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
|
||||||
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
|
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
|
||||||
|
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics*,TextRenderingHint);
|
||||||
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics*,GpMatrix*);
|
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics*,GpMatrix*);
|
||||||
GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics*,REAL,REAL,GpMatrixOrder);
|
GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics*,REAL,REAL,GpMatrixOrder);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user