Acquire Interactive command to this function: File > Import/Export > TWAIN
Description
Acquire(
char *Twain_Source
,
double Twain_XPos
,
double Twain_YPos
,
double Twain_Width
,
int Twain_Landscape
,
int Twain_Reference
);
This function scans an image in the given rectangle and transfers it to the current or OK reference image.
Parameters
char *Twain_Source
Name of TWAIN device.
double Twain_XPos
X offset in pixels. Origin is upper left corner of original image.
double Twain_YPos
Y offset in pixels. Origin is upper left corner of original image.
double Twain_Width
Width of the image in pixels. Use -1 for default.
int Twain_Landscape
Specifies if the image is rotated after scanning.
0 | Image is not rotated after scanning by 90 degrees. |
1 | Image is rotated after scanning by 90 degrees if its height is bigger than its width. |
int Twain_Reference
Specifies If the image is transferred, to current or reference image.
0 | To current image. |
1 | To reference image. |
See Also
AcquireEx, _Acquire
AcquireEx Description
AcquireEx(
char *Twain_Source
,
double Twain_XPos
,
double Twain_YPos
,
double Twain_Width
,
double Twain_Height
,
int Twain_Resolution
,
int Twain_BitsPerComponent
,
int Twain_Gray
,
int Twain_Landscape
,
int Twain_Reference
,
char *DocumentName
);
This function scans an image in the given rectangle and transfers it to the current or reference image.
Parameters
char *Twain_Source
Name of TWAIN device.
double Twain_XPos
X offset in pixels. Origin is upper left corner of original image.
double Twain_YPos
Y offset in pixels. Origin is upper left corner of original image.
double Twain_Width
Width of the image in pixels. Use -1 for default.
double Twain_Height
Height of the image in pixels. Use -1 for default.
int Twain_Resolution
Resolution in dots per inch (DPI) of acquired image. If -1, default is used.
0 | To current image. |
1 | To reference image. |
int Twain_BitsPerComponent
Bit depth of acquired image. If -1, default is used. Note, that most scanners does not support other bit depths than 8 bit per component.
int Twain_Gray
Specifies if acquired image is gray-scale or not.
0 | Image is RGB. |
1 | Image is gray-scale. |
int Twain_Landscape
Specifies if the image is rotated after scanning.
0 | Image is not rotated after scanning by 90 degrees. |
1 | Image is rotated after scanning by 90 degrees if its height is bigger than its width. |
int Twain_Reference
Specifies If the image is transferred, to current or reference image.
0 | To current image. |
1 | To reference image. |
char *DocumentName
Name of the image (displayed in the image caption).
See Also
Acquire, _Acquire, Acquire
_Acquire This function runs the File > Import/Export > TWAIN command.
Description
_Acquire();
Opens the Scan Setup dialog window.
This function is supported only in NIS-Elements 32-bit.
_SelectTwainSource This function runs the File > Import/Export > Select Source command.
Description
_SelectTwainSource();
This function displays dialog box with all available twain sources.
Note
This function displays dialog box with all available twain sources. Term twain source means standard interface to acquire images from scanner, digital cameras etc.
See Also
Acquire, AcquireEx