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. Hibernate 一对一 (one-to-one)

    一对一(one-to-one)实例(Person-IdCard) 一对一的关系在数据库中表示为主外关系.例如.人和身份证的关系.每个人都对应一个身份证号.我们应该两个表.一个是关于人信息的表(Pers ...

  2. test20181223

    Written with StackEdit. T1 取石子(stone) Description 有\(n\)堆石子,第\(i\)堆有\(x_i\)个. \(Alice\)和\(Bob\)轮流取石子 ...

  3. BZOJ2936 Codevs3634 POI1999 积水 【并查集】*

    BZOJ2936 Codevs3634 POI1999 积水 题目描述 有这样一块土地,它可以被划分成N×M个正方形小块,每块面积是一平方英寸,第i行第j列的小块可以表示成P(i,j).这块土地高低不 ...

  4. 一个简洁、好用的Pytorch训练模板

    一个简洁.好用的Pytorch训练模板 代码地址:https://github.com/KinglittleQ/Pytorch-Template 怎么使用 1) 更改template.py 替换 __ ...

  5. SSH使用密钥登录并禁止密码登录

    #1 新建用于登录的用户useradd -p `echo "KYmO4ClPt1" | openssl passwd -1 -salt $(< /dev/urandom tr ...

  6. 在iOS上实现二维码功能

    http://blog.csdn.net/abcmx/article/details/8011904 如今二维码随处可见,无论是实物商品还是各种礼券都少不了二维码的身影.而手机等移动设备又成为二维码的 ...

  7. pandas 之 set_index

    set_index 很有用 http://stackoverflow.com/questions/10457584/redefining-the-index-in-a-pandas-dataframe ...

  8. gradle java 简单项目使用

    预备环境 gradle 配置好变量,方便生成项目 1. 环境配置 gradle wrapper 生成项目结构 ├── build.gradle ├── gradle │ └── wrapper │ ├ ...

  9. maven-assembly-plugin 打包简单案例

    简单项目 1. maven  netty  lomback    包含项目依赖 <dependencies> <dependency> <groupId>io.ne ...

  10. eclipse marketplace网络连接失败的解决方法

    2015-12-04 01:12:33 本想在eclipse上安装一个插件,点进help-EclipseMarketplace却连接失败,错误如下: 在help-instal new software ...