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. "PEP:8 expected 2 blank lines ,found 1"

    pycharm shows "PEP:8 expected 2 blank lines ,found 1" 用pycharm写python的时候,总会在def function() ...

  2. 使用Percona Xtrabackup创建MySQL slave库

    一.使用Percona Xtrabackup创建MySQL slave库 MySQL Server 版本: Server version: 5.7.10-log MySQL Community Ser ...

  3. 通过解读 WPF 触摸源码,分析 WPF 插拔设备触摸失效的问题(问题篇)

    在 .NET Framework 4.7 以前,WPF 程序的触摸处理是基于操作系统组件但又自成一套的,这其实也为其各种各样的触摸失效问题埋下了伏笔.再加上它出现得比较早,触摸失效问题也变得更加难以解 ...

  4. asp.net远程调用WebService的两种方法(转载)

    一,静态方法在“解决方案‘项目名’” -> 相应的文件夹,如“Web References” ->右键“添加WEB引用”->在URL里写入地址.二,动态方法在“解决方案‘项目名’” ...

  5. 随着tomcat一起启动一个线程

    package test; import javax.servlet.*; public class MyCode implements ServletContextListener { //当Tom ...

  6. as3 阻止后续侦听器

    public class Test1 extends Sprite { private var spr:Sprite; private var spr2:Sprite; public function ...

  7. oracle之 db file sequential read等待事件优化思想

    为什么db file sequential read事件在full table scan操作中显现,为什么在多块读中为什么会有单块读存在 ? extent的大小 :当扩展区中的最后一组块仅是1个块,o ...

  8. xunsearch安装及环境检测(一)

    1.运行执行下载解压安装包wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2解压到指定目录 tar -xjf xu ...

  9. Java格式化时间为String类型

    SimpleDateFormat ormater = new SimpleDateFormat("yyyy-MM-dd"); Date date=new Date(); Strin ...

  10. Bash命令查找本机公网IP

    用Bash命令查找本机公网IP wget -qO - http://ipecho.net/plain; echo