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. Git使用总结(廖雪峰git)

    安装 $ sudo apt-get install git 配置 # 配置用户名和邮箱 $ git config --global user.name "Your Name" $ ...

  2. kubeadm搭建kubernetes集群之三:加入node节点

    在上一章<kubeadm搭建kubernetes集群之二:创建master节点>的实战中,我们把kubernetes的master节点搭建好了,本章我们将加入node节点,使得整个环境可以 ...

  3. Jmter-Test Fragment、Include Controller和Module Controller

    Test Fragment--测试片段 The Test Fragment is used in conjunction with the Include Controller and Module ...

  4. jQuery轮播插件SuperSlide【2016-10-14】

    [一.页面实现轮播效果] (1)效果下图可以自动轮播 (2)代码  autoPlay控制是否轮播 //banner轮播 $(".banner").slide({mainCell:& ...

  5. BZOJ1412 ZJOI2009 狼和羊的故事 【网络流-最小割】

    BZOJ1412 ZJOI2009 狼和羊的故事 Description “狼爱上羊啊爱的疯狂,谁让他们真爱了一场:狼爱上羊啊并不荒唐,他们说有爱就有方向......” Orez听到这首歌,心想:狼和 ...

  6. Luogu3576 POI2014 MRO-Ant colony 【树形DP】*

    Luogu3576 POI2014 MRO-Ant colony The ants are scavenging an abandoned ant hill in search of food. Th ...

  7. Python学习-第三方库操作

    2018-05-04   12:03:19 Python安装模块,更新模块 #显示模块 pip list #显示过期模块 pip list --outdated #安装模块 pip install x ...

  8. 从hello world 说程序运行机制

    转自:http://www.cnblogs.com/yanlingyin/archive/2012/03/05/2379199.html 开篇 学习任何一门编程语言,都会从hello world 开始 ...

  9. 在Eclipse中配置Tomcat7.0

    为了在Eclipse中进行struts2的测试,才发现自己机器上的Eclipse没有集成Tomcat,在网上找了半天,不是这个插件没有下载地址,就是那个有好多注意事项或者版本问题.结果,自己到tomc ...

  10. c++中重载,重写,覆盖

    1.重载 重载从overload翻译过来,是指同一可访问区内被声明的几个具有不同参数列表(参数的类型,个数,顺序不同)的同名函数,根据参数列表确定调用哪个函数,重载不关心函数返回类型. 相同的范围(在 ...