分配高度宽度时的位图崩溃 [英] Bitmap while assigning height width crashes

查看:25
本文介绍了分配高度宽度时的位图崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim objBmpImage AS Bitmap = New Bitmap(9450, 6750)

在执行上述代码行时应用程序崩溃 - 参数异常 - 参数无效.

On execution of above line of code application crashes - Argument Exception- Parameter is not valid.

请指教.

推荐答案

我认为这个位图需要一个巨大的连续非托管内存来存储位图位.不仅仅是可用于您的流程的内容.所以它的一种说法是不支持你想要的大小.尝试减少它会起作用.

I think this bitmap requires a huge contiguous unmanaged memory to store the bitmap bits. More than what is available for your process. So its one way of saying the size you want is not supported. Try reducing and it would work.

这篇关于分配高度宽度时的位图崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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