TwainDrawStretchDIB

Draws a Device Independent Bitmap (DIB) in a GUI window.

Synopsis

error = TwainDrawStretchDIB(Dib, Hdc, Width, Height)

Args

Dib is the DIB returned by TwainCreateDIB.

Hdc is a "device context" for the GUI window.

Width is the desired width to size the bitmap to.

Height is the desired height to size the bitmap to.

Returns

An empty string if successfully drawn, or an error code.

Notes

When you no longer need to display a DIB, you should free it by passing it to TwainFreeDIB.

See TwainDrawDIB.