Is there a limit on how much wide a bitmap/graphic can be for GDIP?
I have a very wide graphic. With a width of 31974 the drawing works great. But when I have a width of 37613 there is nothing shown anymore.
The hight is only a 10th of the width. Hence I assume the problem is due to the width.
Snippet from the code:
Code: Select all
Gui, Add, Text, w%width% h%height% HwndhText
WinSet Style, +0xE, % "ahk_id " hText
pbm := Gdip_CreateBitmap(width, height)
pg := Gdip_GraphicsFromImage(pbm)
[... a lot of drawing ...]
hbm := Gdip_CreateHBITMAPFromBitmap(pbm)
SetImage(hText, hbm)