如何保存最小内存占用的大型分形图像? [英] How to save a large fractal image with the least possible memory footprint?

查看:185
本文介绍了如何保存最小内存占用的大型分形图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究分形,而当涉及到分形时,细节是必须的。但是,由于我使用Java,所以一旦我超过了2000x2000px,我就用尽了堆空间。是的,我可以增加堆空间,但这不是一个非常优雅的解决方案。

I'm currently working on fractals, and when it comes to fractals, detail is a must. However, since I am using Java, I run out of heap space once I get past about 2000x2000px. Yes, I could increase the heap space, but that's not a very elegant solution.

所以我的问题是:
有什么图像格式我可以写像我计算的像素数据?如果有多个,哪些是最容易理解的? (Java库只支持一次编写整个图像,从我所知道的)。

So my question is: Are there any image formats where I could write the pixel data as I calculate it? If there are multiple, which ones are the easiest to understand? (The Java libraries only support writing whole images at a time, from what I know).

谢谢!

推荐答案

嗯,总是有BMP。您可以在 wotsit 上找到BMP文件格式的多个简单引用。

Well, there's always BMP. You can find multiple simple references to the BMP file format at wotsit.

这篇关于如何保存最小内存占用的大型分形图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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