Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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);
}

Return 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also