无法使用CreateDIBSection函数创建位图图像 [英] Unable to create Bitmap image Using CreateDIBSection function
问题描述
我们正在尝试使用CreateDIBSection函数创建一个位图图像,其宽度= 211808,高度= 84053,DPI(96)返回NULL值,没有任何日志信息,当我尝试Width = 33284时height = 13208使用DPI(96)I
能够生成位图图像。我们是否有宽度和高度的限制值来生成位图?如果是,我们是否有任何文件?
有2GB的限制。请参阅此论坛帖子。
如何使用CreateDIBSection在64位Win7上创建一个DIB
部分> 2GB,具有足够的物理RAM(似乎有2GB的限制)
-Seetharam
We are trying to create a bitmap image using CreateDIBSection function with respective to width=211808 and height=84053 with DPI(96) which returns NULL value without any log information, when I was trying with Width=33284 and height=13208 With DPI(96) I was able to generate the bitmap image. Do we have any limitation value for the width and height to generate the bitmap? If so, do we have any documented file?
There's a 2GB limit. See this forum thread.
How to use CreateDIBSection to create a DIB section >2GB on 64 bit Win7 with enough physical RAM ( It seems there's a 2GB limit)-Seetharam
这篇关于无法使用CreateDIBSection函数创建位图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!