I am using some scanning software that can provide me with a handle to a
DIB (Device Indep. Bitmap according to the documentation). What I'd like
to do is display this directly on the screen in a label, or another
suitable element. I'm not very clear on exactly what a handle is (except
that it's different from a pointer, again according to their documentation)
and how to interface this with Win32::GUI.
A handle is simply a numeric number which identifies a windows object. All
Win32-GUI method calls can also be called as functions that use the handle
directly. To use the DIB, you're probably going to have to convert it
somehow.
Have a look at Win32::GUI::DIBitmap :
http://rocherl.club.fr/Win32GUI.html
I had a quick look, and it doesn't seem to be able to create a bitmap from a
DIB handle, but you might be able to hack something together if you can find
the correct function to convert a DIB into something useful.
Cheers,
jez.