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

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

问题描述

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

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

我的第一个测试是超高清 4k 分辨率,结果很好(所有这些示例均为 8 位颜色).所以我决定有点疯狂,在两个维度上都放大了 10 倍,即 38400 x 21600.生成的文件似乎无效,因为 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天全站免登陆