System.Drawing.Text.TextRenderingHint 的几种效果

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 的几种效果的更多相关文章
- 类库探源——System.Drawing
一.System.Drawing 命名空间简述 System.Drawing 命名空间提供访问 GDI+ 的基本功能,更高级的功能在 System.Drawing.Drawing2D,System.D ...
- System.Drawing.Graphics.cs
ylbtech-System.Drawing.Graphics.cs 1.程序集 System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKey ...
- mono+jexus 验证码不显示:System.Drawing
System.ArgumentException The requested FontFamily could not be found [GDI+ status: FontFamilyNotFoun ...
- System.Drawing.Color的几种使用方法
System.Drawing.Color cl = Color.Red; System.Drawing.Color cl = Color.FromArgb(255,0,0); ...
- 类库探源——System.Drawing.Bitmap
一.System.Drawing.Bitmap Bitmap 类: 封装GDI+ 位图,此位图由图形图像及其属性的像素数据组成.Bitmap 是用于处理由像素定义的图像的对象 命名空间: System ...
- fakeLoader页面加载前loading演示8种效果
提高用户体验的插件fakeLoader页面加载前loading演示8种效果 在线预览 下载地址 示例代码 <div id="main"> <div class=& ...
- jQuery Wheel 环形菜单插件5种效果演示
很酷的菜单-jQuery Wheel 环形菜单插件5种效果演示在线预览 下载地址 实例代码 <div class="container"> <!-- Top Na ...
- jQuery超酷下拉插件6种效果演示
原始的下拉框很丑啦, 给大家一款jQuery超酷下拉插件6种效果 效果预览 下载地址 实例代码 <div class="container"> <section ...
- jQuery自定义漂亮的下拉框插件8种效果演示
原始的下拉框不好看这里推荐一个jQuery自定义漂亮的下拉框插件8种效果演示 在线预览 下载地址 实例代码 <!DOCTYPE html> <html lang="en&q ...
随机推荐
- visual studio code 命令集合
title: "netcore命令行汇总" layout: post date: 2017-09-18 13:22:00" categories: netcore --- ...
- C++调用SQLServer存储过程
同事手头的C++工程中涉及SQLServer数据库的操作需要优化,说是测试调用存储过程失败,提示: 要了C++的源码: 折腾半天,最终定位问题,问题不在C++的代码,而是SQLServer的存储过程要 ...
- Android:数据持久化(1/2)文件、SharedPreferences
Summary 持久化的3种方法: 普通文件:I/O流操作文件: SharedPreferences:XML文件,通过key-value pair的形式存储数据: SQLite:Android自带数据 ...
- BZOJ3994:约数个数和(莫比乌斯反演:求[1,N]*[1,M]的矩阵的因子个数)
Description 设d(x)为x的约数个数,给定N.M,求 Input 输入文件包含多组测试数据. 第一行,一个整数T,表示测试数据的组数. 接下来的T行,每行两个整数N.M. Outpu ...
- Spark执行样例报警告:WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any resources
搭建Spark环境后,调测Spark样例时,出现下面的错误:WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any res ...
- svn问题解答
一.svn在提交文件是报错:previous operation has not finished;run 'cleanup' if it was interrupted 原因,工作队列被占用,只需在 ...
- wordpress分享到微信无缩略图的问题
牛逼的老板想把他牛逼的艺术品分享给牛逼的画家和藏家简直苦逼了我这个程序狗,他想要的结果是这样的qq和微信上依次为 但是牛逼的微信越来越“抠”了现在不是微信开发者用不了他的分享接口不给你显示缩略 ...
- 打包python文件,让文件程序化
通过对源文件打包,Python程序可以在没有安装 Python的环境中运行,也可以作为一个独立文件方便传递和管理. 现在网上主流的打包方式有两种py2exe或者pyinstaller两款多平台的Pyt ...
- 解决近期linux下yum更新出现HTTP Error 404 NOT FOUND错误的办法
本文转载自:http://tech.lezi.com/archives/47 最近两天使用yum的163源,出现404错误 [root@localhost yum.repos.d]# yum make ...
- java代码------------条件运算符 ?:
总结: package com.sads; //?: //这个运算符是条件运算符 //条件式?值:值 public class Sd { public static void main(String[ ...