ICAP_BITDEPTH

Featured Clients

Sectors: FinanceInformation TechnoloyGovernmentHealthcareIndustriesEducation(show all)

TWAIN Capability: ICAP_BITDEPTH

ICAP_BITDEPTH

Description

Specifies the pixel bit depths for the Current value of ICAP_PIXELTYPE. For example; ICAP_PIXELTYPE TWPT_GRAY, this capability specifies whether this is 4-bit gray or 8- bit gray

ICAP_PIXELTYPE TWPT_RGB, this capability specifies whether this is 24-bit color or 48-bit color

This depth applies to the total of all the data channels. TW_IMAGEINFO BitsPerSample is used to identify the number of bits in each channel.

Application

The application should loop through all the ICAP_PIXELTYPEs it is interested in and negotiate the ICAP_BITDEPTH(s) for each.

For all allowed settings of ICAP_PIXELTYPE

Set ICAP_PIXELTYPE

Set ICAP_BITDEPTH for the current ICAP_PIXELTYPE

Source

Values

If the bit depth in a MSG_SET is not supported for the current ICAP_PIXELTYPE setting, return TWRC_FAILURE / TWCC_BADVALUE.

Type: TW_UINT

Value after MSG_OPENDS: (may be remembered from a previous session)

After MSG_RESET/MSG_RESETALL: (dependent on ICAP_PIXELTYPE)

Allowed Values: >=1

Containers

MSG_GET TW_ONEVALUE TW_ENUMERATION

MSG_GETCURRENT TW_ONEVALUE

MSG_GETDEFAULT TW_ONEVALUE

MSG_SET TW_ONEVALUE

MSG_SETCONSTRAINT TW_ONEVALUE

TW_ENUMERATION

MSG_RESET TW_ONEVALUE

MSG_QUERYSUPPORT TW_ONEVALUE

Required By

All Image Sources

TWAIN Version Introduced

Version 1.0

Related

ICAP_PIXELTYPE

TWAIN Notice

Where would you like to scan from? Scan in Web Apps Scan in Java Scan in .NET