Checks whether a Device Independent Bitmap (DIB) handle contains valid image data.
Synopsis
flag = TwainIsValidDIB(Dib)
Args
Dib is the DIB returned by TwainCreateDIB.
Returns
A 1 if the DIB handle contains valid image data, or a 0 otherwise.
Notes
TwainIsValidDIB is useful if you need to know whether a DIB handle is safe to pass to other Twain DIB functions that require a DIB handle.
After calling TwainFreeDIB on a particular handle, TwainIsValidDIB will return a 0 for that handle.