Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
ColorScheme Property
See Also 
Leadtools.Twain Namespace > TwainJpegCompression Structure : ColorScheme Property




Gets or sets color space values.

Syntax

Visual Basic (Declaration) 
Public Property ColorScheme As TwainColorScheme
Visual Basic (Usage)Copy Code
Dim instance As TwainJpegCompression
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

Gets or sets a value that indicates the color space in which the compressed components are stored. Only spaces supported by the source for TwainCapabilityType.ImageJpegPixelType are valid. This property is updated by calling the GetJpegCompression method. To set the JPEG Compression options, set this property and the other TwainJpegCompression properties and call the SetJpegCompression method.

Example

Refer to GetJpegCompression example.

Remarks

For more information, refer to Using JPEG Compression For A TWAIN Source. For more information about TW_JPEGCOMPRESSION, refer to the TWAIN 1.9 specification from the site http://www.twain.org/.

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