Windows中位图文件的默认bpp [英] default bpp for bitmap files in Windows

查看:123
本文介绍了Windows中位图文件的默认bpp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Windows中位图文件的默认bpp,如果有的话?

what is default bpp for bitmap files in Windows, if any?

推荐答案

为了给出一些细节,位图没有"默认"。

To give some specifics, bitmaps don't have a "default".

您将始终必须在位图信息中声明像素格式是什么。例如,如果你看一下

BITMAPV5HEADER
结构,然后你会看到那里有bV5BitCount字段。它支持的唯一选项是在该文档中,并且它们都不是默认的。

You will always have to declare in the bitmap information what the pixel format is. For example, if you look at the BITMAPV5HEADER structure, then you will see there that there is the bV5BitCount field. The only option that it supports are in that documentation, and none of them is default.

现在很难找到除了每像素24或32位之外的任何位图,所以如果你我想假设其中一个。但最好始终检查。

It is rare to find bitmaps in anything but 24 or 32 bits per pixel these days, so if you want to assume then go for one of these. But it would be best to always check.


这篇关于Windows中位图文件的默认bpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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