VintaSoft Twain ActiveX Discussions

Questions, comments and suggestions concerning VintaSoft Twain ActiveX.

Board index < VintaSoft Twain < VintaSoft Twain ActiveX Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

KB: How to set the brightness and contrast at scanning?



KB: How to set the brightness and contrast at scanning?

Post by Alex »

Brightness and contrast of color, gray and palette images may be set with the Brightness capability:
  VSTwain1.StartDevice()
  VSTwain1.OpenDataSource()
  VSTwain1.Brightness = VSTwain1.BrightnessMaxValue
  VSTwain1.Contrast = VSTwain1.ContrastMaxValue
  VSTwain1.Acquire()
Brightness and contrast of black-white images may be set with the IThreshold capability:
  VSTwain1.StartDevice()
  VSTwain1.OpenDataSource()
  VSTwain1.Capability = 4387     ' 0x1123
  VSTwain1.CapType = 0           ' One value
  VSTwain1.capValue = 150        ' can be changed from 0 to 255
  VSTwain1.SetCap()
  VSTwain1.Acquire()


Page 1 from 1: 1