DTWAIN_GetAcquireStripData |
Top Previous Next |
The DTWAIN_GetAcquireStripData function gets the information concerning the current strip that was acquired when a buffered transfer is in progress.
DTWAIN_BOOL DTWAIN_GetAcquireStripData (
Parameters Source An open TWAIN Source.
lpCompression Pointer to a LONG that will receive the compression used, or NULL if this parameter should be ignored.
lpBytesPerRow Pointer to a LONG that will receive the number of uncompressed bytes in each row, or NULL if this parameter should be ignored.
lpColumns Pointer to a LONG that will receive the number of uncompressed columns (in pixels) in the buffer, or NULL if this parameter should be ignored.
lpRows Pointer to a LONG that will receive the number of uncompressed rows (in pixels) in the buffer, or NULL if this parameter should be ignored.
lpXOffset Pointer to a LONG that will receive how far from the left edge the data in the buffer is inset, or NULL if this parameter should be ignored.
lpYOffset Pointer to a LONG that will receive how far from the top edge the data in the buffer is inset, or NULL if this parameter should be ignored.
lpBytesWritten Pointer to a LONG that will receive the number of bytes written in the buffer, or NULL if this parameter should be ignored.
Return Values The return value is TRUE if successful. Otherwise FALSE is returned.
Comments The DTWAIN_GetAcquireStripData function gets the data that describes the latest strip of data that was transferred when the buffered memory transfer has been invoked. DTWAIN_GetAcquireStripData should be called only when an application receives the DTWAIN_TN_TRANSFERSTRIPDONE and DTWAIN_TN_ACQUIREDONE notifications. The application must process DTWAIN Notifications to use this function correctly.
For most purposes, this function is used when an application decides to handle the strips of data that are acquired for buffered transfers by installing a user-defined buffer. However, DTWAIN_GetAcquireStripData can be used even if there is no user-defined buffer. For more information and an example, please read the section in the user manual Using a User-Defined Buffer and Buffered Transfers.
Below is a definition of the values for the strip of data:
Bufffered images are acquired when a call to
TWAIN State Transitions The Source must be in State 6 or 7.
Prerequisite Function Call(s)
DTWAIN Source Selection Function
DTWAIN_AcquireBuffered / DTWAIN_AcquireFile / DTWAIN_AcquireFileEx/ DTWAIN_AcquireToClipboard
See Also |