ISIS Tags
These ISIS Scanner Driver Tags are used to retrieve and set information concerning the scanner and scanning options. They are set using the ISISSetTag method and retrieved using the ISISGetTag method. Possible tags are given below. Not all tags are supported by all drivers and not all values are supported by all drivers. For more information, refer to Using ISIS to Scan Images.
Value |
Meaning |
TAG_XRESOLUTION |
[$011A] Gets or sets the horizontal resolution in PixelsPerInch. |
TAG_YRESOLUTION |
[$011B] Gets or sets the vertical resolution in PixelsPerInch. |
TAG_FEEDER |
[$0503] [Read Only] Gets information about the scanner's flatbed and/or feeder. Values may be: |
|
TAG_FEEDER_FEED [$00000001] Scanner has feeder. |
|
TAG_FEEDER_FLAT [$00000002] Scanner has flatbed. |
|
TAG_FEEDER_TELLFLAT [$00020000] Can detect page on flatbed. |
|
TAG_FEEDER_TELLFEED [$00010000] Can detect page in feeder. |
|
TAG_FEEDER_TELLSCAN [$00040000] Can only detect by committing. |
|
TAG_FEEDER_CENTERFEED [$00080000] Can center page in feeder. |
|
TAG_FEEDER_CENTERFLAT [$00100000] Can detect if page is centered in flatbed. |
TAG_XPOSITION |
[$011E] Gets or sets distance from left edge of page to start of image in pixels. |
TAG_YPOSITION |
[$011F] Gets or sets distance from top edge of page to start of image in pixels. |
TAG_IMAGELENGTH |
[$0101] Gets or sets the number of rows (height) of the image in pixels. |
TAG_IMAGEWIDTH |
[$0100] Gets or sets the number of columns (width) of the image in pixels. |
TAG_SAMPLESPERPIXEL |
[$0115] Samples per pixel of the scanned image. |
TAG_BITSPERSAMPLE |
[$0102] Bits per pixel of the scanned image. |
TAG_PHOTOMETRICINTERPRETATION |
[$0106] Indicates whether the image should be interpreted as grayscale or color. Possible values are: |
|
TAG_PHOTOMETRIC_WHITE0 [$0000] binary - 0 represents white |
|
TAG_PHOTOMETRIC_WHITE1 [$0001] binary - 1 represents white |
|
TAG_PHOTOMETRIC_RGB [$0002] RGB |
|
TAG_PHOTOMETRIC_PALETTE [$0003] PALLETTE |
|
TAG_PHOTOMETRIC_BGR [$0120] BGR |
Settings for TAG_SAMPLESPERPIXEL, TAG_BITSPERSAMPLE and TAG_PHOTOMETRICINTERPRETATION, and the corresponding color format are given below.
TAG_SCANORIENTATION |
[$0113] [Read Only] Orientation of the page in the scanner's feeder. Values can be: |
|
TAG_SCANORIENTATION_PORT [$0001] portrait. |
|
TAG_SCANORIENTATION_LAND [$0002] landscape. |
|
TAG_SCANORIENTATION_180 [$0003] upside-down portrait. |
|
TAG_SCANORIENTATION_270 [$0004] upside-down landscape. |
|
TAG_SCANORIENTATION_PORTM [$0005] portrait mirrored. |
|
TAG_SCANORIENTATION_LANDM [$0006] landscape mirrored. |
|
TAG_SCANORIENTATION_180M [$0007] upside-down portrait mirrored. |
|
TAG_SCANORIENTATION_270M [$0008] upside-down landscape mirrored. |
|
|
TAG_SCANTYPE |
[$0514] Specifies the scanning source. Possible values are: |
|
TAG_SCANTYPE_AUTOMATIC [$0000] default - scan from ADF if pages are detected, otherwise scan from flatbed |
|
TAG_SCANTYPE_TRANSPARENCY [$0001] scan from the transparency unit |
|
TAG_SCANTYPE_FLATBED [$0002] scan from the flatbed |
|
TAG_SCANTYPE_FEEDER [$0003] scan only the front side of the page from the feeder |
|
TAG_SCANTYPE_FRONTONLY [$0003] scan only the front side of the page from the feeder |
|
TAG_SCANTYPE_DUPLEX [$0004] scan in duplex mode from the feeder |
|
TAG_SCANTYPE_FRONTBACK [$0004] scan in duplex mode from the feeder |
|
TAG_SCANTYPE_BACKFRONT [$0005] scan in duplex and return back side of the page first from the feeder |
|
TAG_SCANTYPE_BACKONLY [$0006] scan only the back side of the page from the feeder |
|
|
TAG_SCANAHEAD |
[$050d] State of the ScanAhead feature of the scanner. Possible values are: |
|
TAG_SCANAHEAD_NO [$0000] ScanAhead not enabled. |
|
TAG_SCANAHEAD_YES [$0001] ScanAhead enabled. |
|
|
TAG_SCANAHEAD_MAXPAGES |
[$057c] Gets or sets the number of pages to buffer. |
|
|
TAG_MAXPAGES |
[$0504] [Read Only] Gets the number of pages the ADF can hold. |
TAG_COMPRESSION |
[$0103] Gets or sets the type of compression to use, if the scanner supports compression. Possible values are: |
|
TAG_COMPRESSION_NONE [$0001] No compression |
|
TAG_COMPRESSION_MG3 [$0002] CCITT compression |
|
TAG_COMPRESSION_G3 [$0003] CCITT G3 1-DIM |
|
TAG_COMPRESSION_G4 [$0004] Standard G4 |
|
TAG_COMPRESSION_LZW [$0005] LZW compression |
|
TAG_COMPRESSION_JPEG [$0006] JPEG compression, not supported by LEAD. |
|
TAG_COMPRESSION_32771 [$8003] Packbits compression |
|
TAG_COMPRESSION_PACK [$8005] Packbits compression, not supported by LEAD. |
|
TAG_COMPRESSION_JBIG [$8765] JBIG compression. |
|
TAG_COMPRESSION_PCX [$C350] PCX compression, not supported by LEAD. |
|
TAG_COMPRESSION_4BYTE [$C351] No compression, not supported by LEAD. |
|
TAG_COMPRESSION_GIF [$C355] GIF compression, not supported by LEAD. |
|
TAG_COMPRESSION_BMP [$C356] BMP compression, not supported by LEAD. |
|
|
TAG_CONTRAST |
[$0501] Gets or sets the contrast value if scanner supports it. Possible values are: |
|
TAG_CONTRAST_AUTO [$0000] AutoContrast or no support |
|
> 0 Specific Contrast setting |
|
|
TAG_BRIGHTNESS |
[$0502] Gets or set the brightness value. Possible values are: |
|
TAG_BRIGHTNESS_AUTO [$FFFFFFFD] AutoBrightness control |
|
TAG_BRIGHTNESS_DARKEN [$FFFFFFFE] Lighten page relative to TAG_BRIGHTNESS_NORM |
|
TAG_BRIGHTNESS_NORM [$FFFFFFFF] Selects "normal" brightness |
|
TAG_BRIGHTNESS_LIGHTEN [$00000000] Darken page relative to TAG_BRIGHTNESS_NORM. |
|
Some scanners also support values 1 - 127. |
|
|
TAG_GAMMA |
[$050f] Gets or sets the Gamma Curve Adjustment value. Possible values are: |
|
TAG_GAMMA_AUTO [$0000] AutoGammaCorrection |
|
TAG_GAMMA_DOWNLOAD1 [$0001] 1st gamma correction table |
|
TAG_GAMMA_DOWNLOAD2 [$0002] 2nd gamma correction table |
|
TAG_GAMMA_DOWNLOAD3 [$0003] 3rd gamma correction table |
|
TAG_GAMMA_DOWNLOAD4 [$0004] 4th gamma correction table |
|
TAG_GAMMA_DOWNLOAD5 [$0005] 5th gamma correction table |
|
TAG_GAMMA_DOWNLOAD6 [$0006] 6th gamma correction table |