图像“模式”列表 [英] List of Image "modes"

查看:175
本文介绍了图像“模式”列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看PIL(并与此问题相关),在哪里可以得到一个完整的图像模式列表?我看到RGB,RGBX,我的代码有一些BGRX某种程度上,虽然它没有提到在PIL文档,我可以看到...我怎么能看到是什么,什么PIL支持,什么正确的模式选择何时与Windows API调用交互?例如?

Looking through PIL (and related to this question), where can I get a comprehensive list of Image modes? I see "RGB", "RGBX", my code has "BGRX" somehow even though it's not mentioned in the PIL docs that I can see... how can I see which is which, what PIL supports, and what proper modes to select when interacting with windows API calls, for example?

基本上我对图像模式知之甚少,并且想学习更多的信息,神奇的工作。

Basically I know very little about image modes and would like to learn more than just what letters to put in to make it magically work.

推荐答案

正如它在 PIL文档,您需要查看解压缩文件。

As it says in the PIL documentation you need to look at the file Unpack.c, you'll find the list near the end of the file.

16位BGR列为BGR; 16并创建RGBX输出。

16-bit BGR is listed as "BGR;16" and creates a "RGBX" output.

这篇关于图像“模式”列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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