Jump to content

Recommended Posts

Posted
#include <GDIPlus.au3>
_GDIPlus_Startup()
$h = _GDIPlus_BitmapCreateFromScan0(10, 10)
_GDIPlus_BitmapDispose($h)
If _SomeFunctionToCheckHandleExists($h) Then
    _GDIPlus_ImageGetPixelFormat($h)
EndIf

I know I do not need to access remote descriptors and need to write the code correctly, without errors, but for the sake of interest, whether it is possible to write a function _SomeFunctionToCheckHandleExists?

Posted

Afaik there are no functions which test several handles (e.g. image, path, brush, etc.) whether they are existing and thus are valid.

 

 

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...