for (int i = ; i < ; i++)
{
g5.TextRenderingHint = (System.Drawing.Text.TextRenderingHint)i;
string txt;
int font_sz = ; txt = "Static 测试 ";
switch ((System.Drawing.Text.TextRenderingHint)i)
{
case System.Drawing.Text.TextRenderingHint.SystemDefault:
txt += "SystemDefault";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
case System.Drawing.Text.TextRenderingHint.AntiAlias:
txt += "AntiAlias";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
case System.Drawing.Text.TextRenderingHint.AntiAliasGridFit:
txt += "AntiAliasGridFit";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
case System.Drawing.Text.TextRenderingHint.ClearTypeGridFit:
txt += "ClearTypeGridFit";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
case System.Drawing.Text.TextRenderingHint.SingleBitPerPixel:
txt += "SingleBitPerPixel";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
case System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit:
txt += "SingleBitPerPixelGridFit";
g5.DrawString(txt, new Font("Times New Roman", font_sz), new SolidBrush(Color.Black),
new PointF(this._parentControl.Width - , + * i));
break;
default:
break;
}
}

System.Drawing.Text.TextRenderingHint 的几种效果的更多相关文章

  1. 类库探源——System.Drawing

    一.System.Drawing 命名空间简述 System.Drawing 命名空间提供访问 GDI+ 的基本功能,更高级的功能在 System.Drawing.Drawing2D,System.D ...

  2. System.Drawing.Graphics.cs

    ylbtech-System.Drawing.Graphics.cs 1.程序集 System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKey ...

  3. mono+jexus 验证码不显示:System.Drawing

    System.ArgumentException The requested FontFamily could not be found [GDI+ status: FontFamilyNotFoun ...

  4. System.Drawing.Color的几种使用方法

    System.Drawing.Color   cl   =   Color.Red; System.Drawing.Color   cl   =   Color.FromArgb(255,0,0); ...

  5. 类库探源——System.Drawing.Bitmap

    一.System.Drawing.Bitmap Bitmap 类: 封装GDI+ 位图,此位图由图形图像及其属性的像素数据组成.Bitmap 是用于处理由像素定义的图像的对象 命名空间: System ...

  6. fakeLoader页面加载前loading演示8种效果

    提高用户体验的插件fakeLoader页面加载前loading演示8种效果 在线预览 下载地址 示例代码 <div id="main"> <div class=& ...

  7. jQuery Wheel 环形菜单插件5种效果演示

    很酷的菜单-jQuery Wheel 环形菜单插件5种效果演示在线预览 下载地址 实例代码 <div class="container"> <!-- Top Na ...

  8. jQuery超酷下拉插件6种效果演示

    原始的下拉框很丑啦, 给大家一款jQuery超酷下拉插件6种效果 效果预览 下载地址 实例代码 <div class="container"> <section ...

  9. jQuery自定义漂亮的下拉框插件8种效果演示

    原始的下拉框不好看这里推荐一个jQuery自定义漂亮的下拉框插件8种效果演示 在线预览 下载地址 实例代码 <!DOCTYPE html> <html lang="en&q ...

随机推荐

  1. Buildroot 使用默认配置

    /******************************************************************************** * Buildroot 使用默认配置 ...

  2. jquery.i18n.properties.js hacking

    /****************************************************************************** * jquery.i18n.proper ...

  3. java之继承

    措辞 类Y是继承类X == 类X是类Y的父类 == Y IS-A X IS-A测试具有传递性,即:若Y IS-A X,且Z IS-A Y,则Z IS-A X IS-A关系是单向的 条件 为了防止继承被 ...

  4. c语言输出4*5的数列?

    1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20   输出上面的数列,用c实现的代码:<pre lang="c" line=&quo ...

  5. 在crontab中执行shell脚本的问题

    crontab中记录的编写比较简单,下面是一个示例: * * * /app/tpssapp/ftpsrc/tools/statTables/statTables.sh > /app/tpssap ...

  6. Codeforces 620E New Year Tree【线段树傻逼题】

    LINK 题目大意 给你一棵树 让你支持子树染色,子树查询颜色个数,颜色数<=60, 节点数<=4e5 思路 因为颜色数很少,考虑状态压缩变成二进制 然后直接在dfs序上用线段树维护就可以 ...

  7. LeetCode 424. Longest Repeating Character Replacement

    原题链接在这里:https://leetcode.com/problems/longest-repeating-character-replacement/description/ 题目: Given ...

  8. Cucumber 使用例子

    1. junit 配置 @RunWith(Cucumber.class) @CucumberOptions(format ={"pretty","html:target/ ...

  9. java nio和bio

    理解同步/异步,阻塞/非阻塞:https://juejin.im/entry/598da7d16fb9a03c42431ed3 2:http://qindongliang.iteye.com/blog ...

  10. Qt学习之秒表的实现(StopWatch) (转)

    秒表对于我来说并不陌生,在之前自己学习单片机时,实现过秒表和数字钟:基本思路:开启单片机带的定时器,并设置它没10ms溢出一次,分别用三个变量hour,minute,secong记录秒表的时分秒,然后 ...