Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
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;}
Managed Extensions for C++ 
public: __property TwainColorScheme get_ColorScheme();
public: __property void set_ColorScheme( 
   TwainColorScheme value
);
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 1.9 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 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