.bmp文件格式的最大分辨率 [英] Max resolution of .bmp file format

查看:648
本文介绍了.bmp文件格式的最大分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个Mandelbrot分形生成器(我知道还没有),它可以直接渲染到磁盘上以生成巨大的分形.

I have made a Mandelbrot fractal generator (who hasn't, I know) which can render directly to disk to generate huge fractals.

我的第一个测试是UHD 4k分辨率,结果非常出色(所有这些示例均为8位彩色).因此,我决定变得有点疯狂,在两个尺寸上都增大了10倍,即38400 x21600.在Photoshop无法打开该文件的情况下,结果文件似乎无效,但即使在Windows资源管理器中查看文件属性,该文件也是如此.尺寸/等丢失.

My first test was a UHD 4k resolution which turned out great (8-bit colour for all of these examples). So I decided to go a little crazy and went 10x bigger in both dimensions, i.e. 38400 x 21600. The resulting file doesn't appear valid in that Photoshop can't open it but even looking at the file properties in Windows Explorer shows that the dimensions/etc are missing.

我认为限制为32768,所以我尝试通过设置30000 x 30000来低于该限制.这似乎仍然无效.

I thought there was a chance that the limits were 32768 so I tried to go just under that by doing a 30000 x 30000. This still seems to be invalid.

减小到10000 x 10000效果很好,所以我想知道文件格式的局限性是什么?

Going down to 10000 x 10000 works fine so I am wondering what the limitations are of the file format?

即使10x4k分辨率的文件不到1GB,文件大小也不应该成为问题.

File size shouldn't be an issue as even the 10x4k resolution file was under 1GB.

推荐答案

我不确定为什么,但是Windows位图的最大尺寸为32768x32768像素.我记得,它们实际上是在Windows 1.0之前开发的.我记得看到的第一个正式文档是Windows 3.1版本之后的.他们当时可能认为这太荒谬了:)两个参数都定义为DWORD(32位整数).宽度参数是无符号的,高度参数是有符号的(负值会使图像反转).

I am not sure why, but the maximum dimensions for a Windows bitmap are 32768x32768 pixels. As I recall, they were actually developed before Windows 1.0. The first official document I remember seeing was after the Windows 3.1 release. They probably thought that was ridiculously large, at the time :) Both parameters are defined as DWORD's (32-bit integers). The width parameter is unsigned and the height parameter is signed (negative inverts the image).

这篇关于.bmp文件格式的最大分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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