Page 1 of 1

TWAIN Brightness

Posted: Fri Apr 30, 2010 3:21 am
by nsk88
According to the document - GdPicture_NET Document Imaging SDK.pdf, the function GdPictureImaging.TwainSetBrightness is used to set the scanner brightness, where the available range is from -1000 to 1000. However, I noticed that some scanners has brightness settings with the range of 1 to 255. Is it possible to change the range from “-1000 to 1000” to “1 to 255”. Please advice.

Re: TWAIN Brightness

Posted: Fri Apr 30, 2010 10:15 am
by Loïc
Hi,

The range -1000 1000 is defined by the TWAIN specifications. Some scanner use they own range. Can be [0;255] [-255:255] ...

You will be able to retrieve your range using the TwainGetCapRangeNumeric method:

Code: Select all

        Dim nMin, nMax, nStep As Double

        oGdPictureImaging.TwainGetCapRangeNumeric(TwainCapabilities.ICAP_BRIGHTNESS, nMin, nMax, nStep)
Kind regards,

Loïc