Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ColorScheme Property
See Also 
Leadtools.Twain Namespace > TwainImageEffectsProperties Structure : ColorScheme Property



Gets or sets color scheme to use when scanning is to be done.

Syntax

Visual Basic (Declaration) 
Public Property ColorScheme As TwainColorScheme
Visual Basic (Usage)Copy Code
Dim instance As TwainImageEffectsProperties
Dim value As TwainColorScheme
 
instance.ColorScheme = value
 
value = instance.ColorScheme
C# 
public TwainColorScheme ColorScheme {get; set;}
C++/CLI 
public:
property TwainColorScheme ColorScheme {
   TwainColorScheme get();
   void set (    TwainColorScheme value);
}

Property Value

Color scheme to use when scanning is to be done. Possible values are (according to the TWAIN 2.0 specification): TwainCapabilityValue.PixelTypeBW Black and White (1 bit). TwainCapabilityValue.PixelTypeGray 8-bit Gray Scale TwainCapabilityValue.PixelTypeRgb 24-bit RGB Color. TwainCapabilityValue.PixelTypePalette 8-bit Color. TwainCapabilityValue.PixelTypeCmy CYAN, magenta, yellow color space. TwainCapabilityValue.PixelTypeCmyk CYAN, magenta, yellow, black color space. TwainCapabilityValue.PixelTypeYuv Color space type that is true color encoding. It uses one luminance value (Y) and two chroma values (UV). TwainCapabilityValue.PixelTypeYuvk The same as YUV with an additional black variable. TwainCapabilityValue.PixelTypeCieXyz Chromaticity diagram.

Example

Refer to TwainProperties.ImageEffects example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also