Wednesday, May 15, 2024
HomeGolangStretchDIBits does not work on Home windows 10 - Getting Assist

StretchDIBits does not work on Home windows 10 – Getting Assist


Hi there,

I’ve been engaged on some home windows utility that makes use of the StretchDIBits perform from Window’s gdi32.dll to color a picture on display. I managed to make it work on Home windows 11

However after I run it on Home windows 10, StretchDIBits returns 0 and I obtained no concept what’s inflicting this challenge, remember the fact that I’ve examined the identical code in C++ and it really works on each Home windows 11 and Home windows 10

You could find the minimal code to breed the difficulty right here: buggy_stretchdibits.go · GitHub

Thanks,

OO, so cool, we are able to name window’s dll API in Go like this, Do you actually need to do like this ?

mmmm, Are there different methods to name Home windows’ StretchDIBits? I imply apart from cgo as a result of that didn’t work as nicely

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments