←Select platform

Brightness Property

Summary
Gets or sets the brightness value to use when transferring images from the current TWAIN source.

Syntax
C#
C++/CLI
Python
public float Brightness { get; set; } 
public: 
property float Brightness { 
   float get(); 
   void set (    float ); 
} 
Brightness # get and set (TwainImageEffects) 

Property Value

The brightness value to use when transferring images from the current TWAIN source. The brightness values range from -1000 to 1000.

Remarks

This property internally gets or sets the brightness capability ICAP_BRIGHTNESS. For more information on this capability, refer to the TWAIN specification. To get or set the brightness value call the ImageEffects property.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void ImageEffectsPropertyExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   TwainImageEffects imgEffects = session.ImageEffects; 
   imgEffects.Flags = TwainImageEffectsFlags.NegotiateBrightness | TwainImageEffectsFlags.NegotiateContrast | TwainImageEffectsFlags.NegotiateHighlight; 
   float contrast = imgEffects.Contrast; 
   float highlight = imgEffects.Highlight; 
   string msg = String.Format("Image Contrst = {0}\nImage Highlight = {1}", contrast, highlight); 
   MessageBox.Show(msg); 
 
   imgEffects.Brightness = 100; 
   session.ImageEffects = imgEffects; 
 
   TwainAcquirePageOptions pageOpts = session.AcquirePageOptions; 
   pageOpts.PaperSize = TwainPaperSize.A4; 
   pageOpts.PaperOrientation = TwainPaperOrientation.Landscape; 
   session.AcquirePageOptions = pageOpts; 
 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.