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




Maintains a predefined table to speed conversion with a user palette when using ColorResolutionCommand.

Syntax

Visual Basic (Declaration) 
Public Class RasterUserMatchTable 
Visual Basic (Usage)Copy Code
Dim instance As RasterUserMatchTable
C# 
public class RasterUserMatchTable 
Managed Extensions for C++ 
public __gc class RasterUserMatchTable 
C++/CLI 
public ref class RasterUserMatchTable 

Example

This example changes the color resolution of a bitmap, using a user-defined palette and a match table for fast color matching.

Remarks

Use the RasterUserMatchTable class to create a predefined table to speed conversion with a user palette when using ColorResolutionCommand.

You should use the following sequense

  1. Create a new instance of the RasterUserMatchTable class
  2. Call the RasterUserMatchTable.Create method to create the table.
  3. Call the RasterUserMatchTable.Use method to make this the current table. (Having this as a separate method allows you to save tables in files and get the one you need, without creating it again.)
  4. Run ColorResolutionCommand with ColorResolutionCommandPaletteFlags.UsePalette or ColorResolutionCommandPaletteFlags.FastMatch set in the ColorResolutionCommand.PaletteFlags property.
  5. Call the Unuse method when the table is no longer needed.

The completed table is a 32K array of integers. On a 32-bit system, it occupies 128K bytes of memory. Creation of the table is a slow, memory-intensive process that is useful only if you are using your own palette more than once. For example, you may want to create the table once, save it to a file, and ship that file with your application.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterUserMatchTable

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