GDI+文字渲染可以让字体更清晰

易语言 2020-07-12 15:15:45

GDI+文字渲染可以让字体更清晰

GdipCreateLineBrushFromRectI (RectI, 十六进制到十进制 (“8800FF00”), 十六进制到十进制 (“FFFFFF00”), #线性渐变模式_从上到下, #线性渐变模式_从左到右, Brush)
文本 = “你好,测试一下.OK”
' 调试输出 (Graphics, fontfam, strformat, curfont, Brush)
调试输出 (GdipDrawString (Graphics, A2W (文本), lstrlenw (A2W (文本)), curfont, rclayout, strformat, Brush))
GdipDeleteFont (curfont)
GdipDeleteFontFamily (fontfam)
GdipDeleteStringFormat (strformat)
GdipDeleteBrush (Brush)
GdipDeleteGraphics (Graphics)