I am working together with another developer to implement GdPicture to replace an old scan component.
Could you tell me what the value should be to set the PixelType to automatic? I don't see this in the documentation:
http://guides.gdpicture.com/content/fra ... lType.html
Please check the attachment, in which you will see the "Auto Detect Color" option: I can access all the other options through one of the PixelType values but the automatic one won't work.
I have tried:
99 (wanted to test outside the range of the given constants)
Anyway "Auto Detect Color" isn't a PixelType in the first place, it is obviously one of the other choices and it is automatically identified by the scanner own software.
So either you hide the driver UI and set the values in your code or you show the driver UI and let the user set the values in it but you definitely cannot do both.
If you want to do the exact same thing in your source code only, you should consider our Color Detection plugin (here: http://www.gdpicture.com/products/plugi ... ection.php ).
Some additional information:
If your TWAIN device supports automatic color detection capability you should be able to enable it by setting the ICAP_AUTOMATICCOLORENABLED cap to 1.
Here a vb example:
Code: Select all
Imaging1.TwainSetCapCurrentNumeric(TwainCapabilities.ICAP_AUTOMATICCOLORENABLED, Imaging1.TwainGetCapItemType(TwainCapabilities.ICAP_AUTOMATICCOLORENABLED), 1)
With best regards,
If the scanner doesn't support automatic color detection I guess it will default to it's own default value.
Who is online
Users browsing this forum: No registered users and 3 guests