勇芳软件工作室.汉化:  GDI+ Reference > Enumerations >

TextRenderingHint

Previous pageReturn to chapter overviewNext page

枚举指定用于呈现文本的过程。该过程影响文本的质量。

 

C++ 语法

 

typedef enum {

TextRenderingHintSystemDefault = 0,

TextRenderingHintSingleBitPerPixelGridFit = 1,

TextRenderingHintSingleBitPerPixel = 2,

TextRenderingHintAntiAliasGridFit = 3,

TextRenderingHintAntiAlias = 4,

TextRenderingHintClearTypeGridFit = 5

} TextRenderingHint;

 

PowerBASIC 语法

 

%TextRenderingHintSystemDefault            = 0

%TextRenderingHintSingleBitPerPixelGridFit = 1

%TextRenderingHintSingleBitPerPixel        = 2

%TextRenderingHintAntiAliasGridFit         = 3

%TextRenderingHintAntiAlias                = 4

%TextRenderingHintClearTypeGridFit         = 5

 

常量

 

TextRenderingHintSystemDefault

 

指定使用当前选择的系统字体平滑模式(也称为呈现提示)绘制字符。

 

TextRenderingHintSingleBitPerPixelGridFit

 

指定使用其字形位图绘制一个字符,并暗示改善字符和曲率上的字符外观。

 

TextRenderingHintSingleBitPerPixel

 

指定使用其字形位图绘制字符,而不提示。这样做的结果是以牺牲质量为代价的更好的性能。

 

TextRenderingHintAntiAliasGridFit

 

指定使用其抗锯齿字形位图和提示绘制字符。由于抗锯齿性能更高,所以质量更好。

 

TextRenderingHintAntiAlias

 

指定使用其抗锯齿字形位图绘制字符,而不提示。由于暗示关闭,茎宽差异可能是显着的。

 

TextRenderingHintClearTypeGridFit

 

指定使用其字形Microsoft ClearType位图和提示绘制一个字符。这种类型的文本呈现不能与CompositingModeSourceCopy一起使用。

 

仅限Microsoft Windows XP和Windows Server 2003:仅在Windows XP和Windows Server 2003上才支持ClearType渲染。因此,即使在这些操作系统上支持Windows GDI +,其他操作系统也会忽略TextRenderingHintClearTypeGridFit.

 

备注

 

与每个过程相关的质量根据情况而异。TextRenderingHintClearTypeGridFit为大多数液晶显示器提供了最好的质量,并且具有相对较小的字体。TextRenderingHintAntiAlias为旋转文本提供最佳质量。通常,产生较高质量文本的过程比产生较低质量文本的过程慢。