抗锯齿2D矢量图形 [英] anti-aliased 2D vector graphics

查看:181
本文介绍了抗锯齿2D矢量图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以获得一个python包来绘制这些数字?我用Google搜索并发现了

PyX,我猜它会输出PostScript。我想我可以把一个PostScript加到BMP

转换器之类的东西。还有其他选择吗?


我看过PIL,但它似乎不支持绘制抗锯齿

数字。感谢您的任何建议。


Andy

Where can I get a python package to draw such figures? I googled and found
PyX, I guess it outputs PostScript. I guess I can get a PostScript to BMP
converter or something. Is there any other alternative?

I have looked at PIL, but it doesn''t seem to support drawing anti-aliased
figures. Thanks for any suggestions.

Andy

推荐答案

请注意,我在Windows上...如果有一些特定于Windows的解决方案,那么

就可以了。我知道有一个python win32接口,我认为GDI

支持消除锯齿的矢量图形,但我不确定。和字体 - 我

也需要绘制文字。有人试过这种方法吗?


谢谢,

Andy


Andy C < AY ******** @ cornell.edu>在消息中写道

新闻:J3 ******************** @ newssvr21.news.prodigy .com ...
Note that I''m on Windows... if there is some windows-specific solution, that
would be fine. I know there is a python win32 interface, and I think GDI
supports anti-aliased vector graphics, but I''m not sure. And fonts -- I
need to draw text too. Anyone tried that approach?

thanks,
Andy

"Andy C" <ay********@cornell.edu> wrote in message
news:J3********************@newssvr21.news.prodigy .com...
我在哪里可以得到一个python包来绘制这样的数字?我用Google搜索并且
找到了PyX,我想它会输出PostScript。我想我可以将PostScript转换为BMP
转换器等等。还有其他选择吗?

我看过PIL,但它似乎不支持绘制抗锯齿的数据。感谢您的任何建议。

Andy
Where can I get a python package to draw such figures? I googled and found PyX, I guess it outputs PostScript. I guess I can get a PostScript to BMP
converter or something. Is there any other alternative?

I have looked at PIL, but it doesn''t seem to support drawing anti-aliased
figures. Thanks for any suggestions.

Andy



您好,


pygame( www.pygame.org )至少可以绘制抗锯齿

行。在文档中查找绘图模块。


Udo
Hi,

pygame (www.pygame.org) can at least draw antialiased
lines. Look for the draw module in the documentation.

Udo


On Fri,01 Aug 2003 07:57:29 GMT,谣言说Andy C

< ay ******** @ cornell.edu>可能写得:
On Fri, 01 Aug 2003 07:57:29 GMT, rumours say that "Andy C"
<ay********@cornell.edu> might have written:
我在哪里可以得到一个python包来绘制这样的数字?我用Google搜索并发现了PyX,我想它会输出PostScript。我想我可以将PostScript转换为BMP
转换器等等。还有其他选择吗?

我看过PIL,但它似乎不支持绘制抗锯齿的数据。感谢您的任何建议。
Where can I get a python package to draw such figures? I googled and found
PyX, I guess it outputs PostScript. I guess I can get a PostScript to BMP
converter or something. Is there any other alternative?

I have looked at PIL, but it doesn''t seem to support drawing anti-aliased
figures. Thanks for any suggestions.




使用PIL,并绘制两倍大小(2 *宽,2 *高)的图像作为

你想要的。当你完成后,调整图像大小--BILINEAR工作正常

在这种情况下。


你将需要绘制更粗的线条& arcs(我不记得ATM如果你

可以使用< width>参数和绘图方法)...创建一个自定义的

类来管理绘图双需要时的线条和圆弧/圆圈。

-

TZOTZIOY,我说英格兰最好,

Microsoft安全警报:Matrix开始时开源。



Use PIL, and draw on an image twice the size (2*width, 2*height) as the
one you want. When you''re done, resize the image --BILINEAR works fine
in this case.

You will need to draw thicker lines & arcs (I don''t remember ATM if you
can use a <width> parameter with drawing methods)... create a custom
class to manage drawing double lines and arcs / circles when needed.
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.


这篇关于抗锯齿2D矢量图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆