TwainGetImageInfo

Gets some information about the next image that is ready to be received. This is normally called right before calling TwainGetImage.

Synopsis

error = TwainGetImageInfo(Stemname)

Args

Stemname is the name of some stem variable that will be filled in with information about the next image that is ready for you to retrieve. Stemname.1 is set to X Resolution whole number part, and Stemname.2 is set to X Resolution fractional part. Stemname.3 is set to Y Resolution whole number part, and Stemname.4 is set to Y Resolution fractional part. Stemname.5 is set to image width, and Stemname.6 is set to the image height, in pixels. Stemname.7 is set to the image bit depth, for example 8 for an 8-bit image.

Returns

An empty string if the information is successfully retrieved, or an error code if not.

Notes

TwainGetImage can be called only after once calling TwainAcquire to start the acquire process, and only when the twain device signals that an image is ready to be retrieved. TwainQuery can be called to check whether an acquire process is happening.