- 浏览: 92649 次
- 性别:
- 来自: 上海
文章分类
最新评论
CS4中的消除锯齿,主要包含使用设备字体,位图文本,动态消除锯齿,可读性消除锯齿,自定义消除锯齿。
一般说来如果是使用动态文本的话如果只是英文,数字,可以使用Arial嵌入字体,但是如果可能有中文出现,最好是用宋体12号,这样就不会有锯齿。
下面是关于动态嵌入字体的代码
var formt:TextFormat = new TextFormat();
form.size = 18;
form.bold = true;
form.color = 0x515151;
form.font = "font_y";
var txt1:TextField = this.createTextField("txt1",
this.getNextHighestDepth(), 10, 10, 300, 30);
txt1.text = "文本2
txt1.antiAliasType = "advanced";
txt1.border = true;
txt1.embedFonts = true;
txt1.setTextFormat(form);
var txt2:TextField = this.createTextField("txt2", this.getNextHighestDepth(), 10, 50, 300, 30);
txt2.text = "文本3;
txt2.antiAliasType = "normal";
txt2.border = true;
txt2.embedFonts = true;
txt2.setTextFormat(form);
我的网站设计 web design home page
http://www.webdesign-cn.com
http://www.webdesign-china.cn
一般说来如果是使用动态文本的话如果只是英文,数字,可以使用Arial嵌入字体,但是如果可能有中文出现,最好是用宋体12号,这样就不会有锯齿。
下面是关于动态嵌入字体的代码
var formt:TextFormat = new TextFormat();
form.size = 18;
form.bold = true;
form.color = 0x515151;
form.font = "font_y";
var txt1:TextField = this.createTextField("txt1",
this.getNextHighestDepth(), 10, 10, 300, 30);
txt1.text = "文本2
txt1.antiAliasType = "advanced";
txt1.border = true;
txt1.embedFonts = true;
txt1.setTextFormat(form);
var txt2:TextField = this.createTextField("txt2", this.getNextHighestDepth(), 10, 50, 300, 30);
txt2.text = "文本3;
txt2.antiAliasType = "normal";
txt2.border = true;
txt2.embedFonts = true;
txt2.setTextFormat(form);
我的网站设计 web design home page
http://www.webdesign-cn.com
http://www.webdesign-china.cn
发表评论
-
Android游戏开发
2011-07-01 15:26 196Android开发中Activity是个 -
Flash WebGame 开发经验心得和PureMVC框架细说
2011-06-28 14:02 1525→前端的主程序架构和模块划分与人手和人事分工是紧密联系在一起的 ... -
Flash中的深度排序
2011-06-28 11:34 1239As for Multiplayer Games and Vi ... -
Flex 中的callback
2011-06-28 11:16 935Flash支持传递函数做完参数传递。 下面是主函数中的方法 ... -
常用flash引擎和框架
2011-06-27 11:08 2912官方在线帮助(没标英文的都是中文) 用于 Adobe Flas ... -
原来flash player对图片的解码不是异步的,AIR2.6后就异步了
2011-06-27 10:53 819用过 Loader 对象的人都知道,加载图片时,无论是使用 l ... -
Flash WebGame 开发经验心得和PureMVC框架细说
2011-06-27 10:32 1037→前端的主程序架构和模块划分与人手和人事分工是紧密联系在一起的 ... -
简要评说Adobe的FlashPlayer的渲染算法
2011-06-27 10:22 974前些时候看到CSDN上一篇文章介绍FlashPlayer的渲染 ... -
游戏中的智能寻路
2011-05-22 18:20 1223近年来,游戏产业的快 ... -
as3中ProgressEvent的bytesTotal始终为0
2011-05-16 09:50 1480as3中ProgressEvent的bytesTotal始终为 ... -
使用URI-Style Namespace编译ActionScript/Flex Library
2011-05-12 11:10 794当你开发了一个有着多个Pacakge的类库,并在MXML中使用 ... -
环境贴图
2011-03-29 10:49 1047教程:实时环境映射贴图技术实时环境映射贴图技术(Real-ti ... -
Python之旅
2010-12-09 19:40 924一直用AS3+Red5做一些小游戏,感觉挺方便的,特别在做上下 ... -
flash player10的rotationY的使用
2010-12-07 12:26 1581flash player10提供了对3D的支持,虽然功能不够强 ... -
red5的常用方法
2010-12-03 10:11 954在使用red5+flash做rpg游戏开发的时候有些功能是需要 ... -
PV3d性能优化
2010-11-25 14:19 1316当你优化你的程序时, ... -
PV3D处理3D矢量绘图与3D文本
2010-08-23 11:46 1140Papervision3D主要以位图为 ... -
Flash中矢量和位图的使用
2010-06-09 16:47 855最近在做一个世界地图的Flash,其中导入一个很大的矢量图形, ... -
flex 3 + .net开发flash Remoting四[完整代码
2010-03-02 20:49 726一. 相关说明: 本 ... -
关于PV3D常用材质的讨论
2009-12-17 14:05 1087PV3D中的贴图材质有很多。 颜色材质Co ...
相关推荐
用GDI+消除画直线的锯齿,C++ Chart的使用
Wrap Look and Feel acts as a decorator for the current Look and Feel. Thus, you can choose any Look and Feel you want and wrap it with Wrap Look and Feel to enable anti-aliasing. Doing so requires a ...
纯CSS3绿色锯齿字体特效下载是一款绿色环保的创意文字特效。
VB6无损图像缩放 最大限度消除锯齿 GDI实现
VB中使用GDI+消除锯齿模块
参考QT Demo(Image Composition),使用QT图片混合技术实现抗锯齿头像小Demo,Windows QtCreator创建运行通过。经过尝试setMask方式始终...build-showroundpic-Desktop_Qt_5_3_MSVC2013_32bit-Debug里面带有PNG透视图。
java生产文字图片,消除线段的锯齿状边缘。文字更加光滑
解决抗锯齿的源码,有编译好的demo,已经验证有效。放心下载
java 生成图片大字容易产生锯齿,使用canvas绘制图片然后用base64保存,可以生成无锯齿 大图。
delphi用canvas画斜线时总是存在锯齿,转换成gdi画就可以消除
主要代码: BufferedImage image = new BufferedImage(400, 120, BufferedImage.TYPE_4BYTE_ABGR); Graphics2D g2d = image.createGraphics(); g2d.setColor(Color.BLUE); ... g2d.fillRoundRect(0, 0, 400, 120,...
纯CSS3实现绿色锯齿字体特效源码.zip
通过傅里叶变换提高图像的分辨率,使图像边缘更加平滑,明显减弱锯齿形状。
mPaint setAntiAlias ; 2 mPaint setFilterBitmap true 设置也没用时
ECCartoExtension10.0.zip插件。附带使用说明,大家放心使用
透明图片作winform的背景去锯齿,绝对有效。采用双层窗体。能拖动
介绍Android OpenGL ES中,三种可用的抗锯齿实现方式,这里给出详细的代码实现。 文章介绍,请参考: https://blog.csdn.net/xiaxl/article/details/8873018
GDI中提供的各种绘图方法LineTo(), Ellipse()等等,都没有考虑过锯齿形状的消除,于是诞生了本代码,它实现了近乎实时的消除图形锯齿的方法。、 可用的,我试过了
颜色索引下的抗锯齿