DTwainSource::EnumOrientations

Top  Previous  Next

Syntax

bool DTwainSource::EnumOrientations( DTwainLongArray& Array ) const;

 

Parameters

Array

Array that will store the supported orientation values.

 

Return Value

true if successful, false otherwise.

 

Comments

This function returns a DTwainLongArray that denotes all of the supported orientation values for the Source.  If the Source does not support the use of orientations for the acquired images, the return value will be false.  Your application can call DTwainSource::IsOrientationSupported or DTwainSource::IsCapSupported(DTWAIN_CV_ICAPORIENTATION) to check if the Source supports orientation of an image.

 

The returned values in the Array will be equivalent to the orientation values below:

 

 

DTWAIN Constant        

Description



DTWAIN_OR_ROT0        

Rotate 0 degrees

DTWAIN_OR_ROT90

Rotate 90 degrees

DTWAIN_OR_ROT180        

Rotate 180 degrees

DTWAIN_OR_ROT270        

Rotate 270 degrees

DTWAIN_OR_PORTRAIT        

DTWAIN_ROT0

DTWAIN_OR_LANDSCAPE

DTWAIN_ROT270