问题描述
大家好,
我目前正在处理非常大的位图(32位,> 1GB),接近位图大小限制(〜32 kpx平方).出于文件存储的原因,我想将这些位图转换为更合适的格式,例如jpg或png.但是我必须转换它们而不必立即将整个位图加载到内存中,因为这样会遇到内存不足的错误.
有什么办法可以部分转换位图,例如按行,按块或按带?目前,我正在使用Photoshop进行保存,但是在项目的后期阶段这不再是一种选择.
感谢您的帮助,
Max
Hello everybody,
I am currently dealing with very large bitmaps (32bit, > 1GB) close to the bitmap size limit (~ 32 kpx squared). For file storage reasons, I would like to convert these bitmaps into more suitable formats, e.g. jpg or png. But I have to convert them without loading the whole bitmap into memory at once, since I will get a out-of-memory error.
Is there any way how to convert the bitmap in parts, e.g. linewise, blockwise or bandwise? At the moment, I am using Photoshop for saving, but this is not an option at a later stage of the project anymore.
Thanks for the help,
Max
推荐答案
这篇关于c#:如何转换大位图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!