Silverfrost Forums

Welcome to our forums

display_dib_block@ return codes

11 Apr 2024 2:12 #31308

Hi, Is there a list of the return codes given by display_dib_block@, with the description of their meanings? Thank you for your help!

11 Apr 2024 3:42 #31309

An error value of 13 means width ⇐ 0 or height ⇐ 0. An error value of 4 means a failure to allocate memory for the DIB. An error value of 0 means success.

The routine calls the API StretchDIBits when it could fail but at the moment a failure at this point is not reported. I have now updated the routine so that in the future it will give an error code of 9 when this occurs.

11 Apr 2024 4:43 #31310

Many thanks!

Please login to reply.