Why doesn't the PixelType setup work when negotiating with Twain Session?

I am trying to specify software settings for scanning in a TWAIN session. Since the amount of code here would be significant, I will try to explain the problem without pasting all the code. I hope someone is good at TWAIN to help me ....

To make scanning settings, I use low-level calls to the native Twain library. HP Scanjet 7000 Scanner . I am currently stuck in color settings and bit depth settings. . What is important, I had no problems with two other scanners, only this model.

According to the specification, before setting ICAP_BITDEPTH (p. 480), I need to set ICAP_PIXELTYPE (535). So first I ask for a list of supported PixelTypes ... And these are TWPT_BW (black and white), TWPT_GRAY (gray) and TWPT_RGB (RGB). Since I want to get black and white checks, I'm trying to set this ability to tTWPT_BW. This leads to an error, and I do not understand why. As I said in two other models, this works.

Is it possible that this scanner prohibits the installation of such features?

TWAIN Specification: http://www.twain.org/docs/TWAIN_2_1_Spec.pdf

+3
source share
1 answer

. , hp scanjet PixelType TwainType.UInt16, TwainType.Int16 . AlexKak, . http://www.codeproject.com/KB/dotnet/twaindotnet.aspx?msg=1313293#xx1313293xx

+4

Source: https://habr.com/ru/post/1728187/


All Articles