如何创建非常大的图像? 30000 * 30000 DPI,24 [英] How to Create VERY BIG IMAGE ? 30000*30000 DPI,24

查看:212
本文介绍了如何创建非常大的图像? 30000 * 30000 DPI,24的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建非常大的图像? 30000 * 30000 DPI,24

How to Create VERY BIG IMAGE ? 30000*30000 DPI,24

推荐答案

您应该考虑告诉我们您要使用的一种语言,但不是很多. VC6是C ++. DPI无关紧要,它是一个显示细节,与分辨率无关.您无法创建太大的图像,无法做到这一点,不能通过编写将图像存储为大量图块的应用程序来实现,因此很多位图可以放在一起.
You should consider telling us one language that you want to use, not many. VC6 is C++. DPI is irrelevant, it is a display detail that has nothing to do with resolution. You can''t create images that big, programs that do it, do it by writing apps where the image is stored as a lot of tiles, so a lot of bitmaps that fit together.


请考虑以下内容

最常见的文件格式将它们的数据按行逐行存储,作为扫描行.自上而下,即第1行,然后是第2行,或者自下而上,最后一行,然后是第二最后一行,等等.如果您想一次显示整个图像,这些方法将非常有效.

如果创建非常大的图像,这些扫描线将很长.因此,如果要显示图像的一小部分,数据将散布在巨大的存储区域中,从而使其渲染速度变慢.有(至少)两种解决方案.您可以采用Christian Graus的方法,并创建多个较小的图像,在渲染时将它们缝合在一起,或者您可以选择一种不同的图像文件格式在内部进行处理.例如. RIK文件格式可以做到这一点.可能还有其他.如果只想在自己的应用程序中显示文件,总是可以选择创建自己的文件格式.

另一方面,如果您真的想要一个巨大的jpg编码图像,则可能必须对它进行即时编码,然后将数据写入磁盘.生成的图像可能由于大小而几乎无法使用.
Consider the following

The most common file formats store their data row wise, as scan lines. Either top down, i.e. row 1 followed by row 2 etc, or bottom up, last row first, followed by second last row etc. These methods are efficient if you want to display the entire image at once.

If you create a very large image, these scan lines will be very long. As a result, if you want to display a small portion of the image, data will be scattered over a huge memory area, thus making it slow to render. There are (at least) two solutions to this. Either you go the Christian Graus way, and create a number of smaller images you stitch together while rendering, or you chose a different image file format which does this internally. E.g. the RIK file format does this. There are probably others as well. There is always the option of creating your own file format if you only want to display the file in your own application.

On the other hand, if you really want a huge jpg encoded image, you will probably have to encode it on the fly writing data to disk. The resulting image will probably be close to unusable due to its size.


这篇关于如何创建非常大的图像? 30000 * 30000 DPI,24的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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