Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
ColorResolutionCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : ColorResolutionCommand Class




Converts an image from any bits-per-pixel to any bits-per-pixel.

Object Model


Syntax

Visual Basic (Declaration) 
Public Class ColorResolutionCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As ColorResolutionCommand
C# 
public class ColorResolutionCommand : RasterCommand, IRasterCommand  
Managed Extensions for C++ 
public __gc class ColorResolutionCommand : public RasterCommand, IRasterCommand  
C++/CLI 
public ref class ColorResolutionCommand : public RasterCommand, IRasterCommand  

Example

This example will run the ColorResolutionCommand on an image to convert it to 8 and 4 bits/pixel.

Remarks

This class provides flexibility in specifying the output destination and in specifying the palette to use.

For general information about dithering, refer to Color Resolution and Dithering and Dithering Methods.

You can convert the image in place or create a new converted image.

In specifying a palette, you can use simple palette options, or you can specify a palette that is tailored to your needs. The tailored palette can be any size that you specify. It can include specific colors, reserved blank entries, and open entries that this method fills with optimized colors.

If you use the same tailored palette more than once, you can improve performance by creating a table, using RasterUserMatchTable.

This class does not support signed data images. An exception will be thrown if a signed data image is passed to this class.

For more information, refer to Processing an Image.

For more information, refer to Introduction - Palette Handling.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.ColorResolutionCommand

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