wNim icon indicating copy to clipboard operation
wNim copied to clipboard

Large Bitmap creation issue

Open dinau opened this issue 4 years ago • 1 comments

This is simplest program,

import wNim/[wBitmap] 
let bmp = Bitmap(2447,6000) 

This program emits wBitmapError exception when on execution, but change bitmap width to 2446 as follows,

import wNim/[wBitmap] 
let bmp = Bitmap(2446,6000)

is no problem. I don't know why the reason.

My environment: Window10 32bit wNim 0.13.1 nim-1.4.8 gcc version 10.3.0 (Rev5, Built by MSYS2 project)

dinau avatar Aug 19 '21 13:08 dinau

I don't know why, your code works on my computer. wBitmap only use Windows system API. Maybe there is some reason lead your system don't support it? You can try different depth, for example: Bitmap(2447, 6000, 32), or even wImage.

khchen avatar Oct 16 '22 22:10 khchen