Perl/TkFAQ-10.11.那些格式的图片可以在Perl/Tk中使用?

王朝perl·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

原文:

10.11. What Image types are available?

In addition to the Tk builtin bitmaps there is support for reading images from files in formats such as: X11 Bitmaps (.xbm), X Pixmaps (.xpm), and Graphics Inline Format (.gif). See the CrtPhImgFmt man page for more info (if you have Tk 4.X installed). (In order to support other formats you might also consider running through a netpbm filter.)

For perl generation of images see the question (later in this FAQ) on graphics modules.

译文:

10.11.那些格式的图片可以在Perl/Tk中使用?

除了我们以前提过的内置位图(译者注:参见10.9.),Perl/Tk还提供了对以下几种图像格式的支持:X11 Bitmaps (.xbm), X Pixmaps (.xpm), 和 Graphics Inline Format (.gif)。如果你的系统安装了Tk 4.X,可以参阅CrtPhImgFmt的手册页了解更多的信息(译者注:Unix/Linux用户可以使用man CrtPhImgFmt)。(为了让Perl/Tk支持其它的格式,你可以考虑使用netpbm包来预先处理。)——(译者注:所谓netpbm是 Unix系统下的一个通用的图像处理的工具包,包含了很多可以进行图像格式转换的小工具。Windows系统用户可以使用PhotoShop或甚至是 ACDSee等软件进行格式转换。)

关于用Perl绘图的问题,我们将在后面讨论图像模块时再专门讨论。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航