Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
StartDithering Method
See Also 
Leadtools Namespace > RasterImage Class : StartDithering Method




palette
The palette this uses for dithering. You can specify your own palette, or use a null reference (Nothing in Visual Basic) for LEAD's fixed palette.
colors
Number of colors used in the palette. If the palette contains more colors, only the first colors colors are used. Valid values are 2 to 256.
Initializes the buffered dithering of an image.

Syntax

Visual Basic (Declaration) 
Public Sub StartDithering( _
   ByVal palette() As RasterColor, _
   ByVal colors As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim palette() As RasterColor
Dim colors As Integer
 
instance.StartDithering(palette, colors)
C# 
public void StartDithering( 
   RasterColor[] palette,
   int colors
)
Managed Extensions for C++ 
public: void StartDithering( 
   RasterColor[]* palette,
   int colors
) 
C++/CLI 
public:
void StartDithering( 
   array<RasterColor>^ palette,
   int colors
) 

Parameters

palette
The palette this uses for dithering. You can specify your own palette, or use a null reference (Nothing in Visual Basic) for LEAD's fixed palette.
colors
Number of colors used in the palette. If the palette contains more colors, only the first colors colors are used. Valid values are 2 to 256.

Example

This example dithers each line in one image and writes it to another image.

Remarks

The following flow chart shows how the methods relate to each other:

The following properties from the RasterImage are used to control the dithering operation:

This method does not support signed images.

For more information, refer to Processing an Image.

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