免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1840 | 回复: 0
打印 上一主题 下一主题

image mode [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-03 16:15 |只看该作者 |倒序浏览
参见
http://effbot.org/imagingbook/concepts.htm#mode
另:
本地保留查询页面
http://www.pythonware.com/library/pil/handbook/
http://effbot.org/zone/pil-index.htm
Mode
#
The mode of an image defines the type and depth of a pixel in
the image. The current release supports the following standard
modes:

  • 1 (1-bit pixels, black and white, stored with one pixel per
    byte)

  • L (8-bit pixels, black and white)

  • P (8-bit pixels, mapped to any other mode using a colour
    palette)

  • RGB (3x8-bit pixels, true colour)

  • RGBA (4x8-bit pixels, true colour with transparency
    mask)

  • CMYK (4x8-bit pixels, colour separation)

  • YCbCr (3x8-bit pixels, colour video format)

  • I (32-bit signed integer pixels)

  • F (32-bit floating point pixels)

PIL also provides limited support for a few special modes,
including LA (L with alpha), RGBX (true colour with
padding) and RGBa (true colour with premultiplied alpha).
However, PIL doesn’t support user-defined modes; if you to handle band
combinations that are not listed above, use a sequence of Image
objects.
You can read the mode of an image through the
mode
attribute. This
is a string containing one of the above values.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/57278/showart_1889719.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP