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




count
The number of colors to add to the fixed palette.
Creates an array of RasterColor objects that represent the LEAD Fixed palette.

Syntax

Visual Basic (Declaration) 
Public Shared Function Fixed( _
   ByVal count As Integer _
) As RasterColor()
Visual Basic (Usage)Copy Code
Dim count As Integer
Dim value() As RasterColor
 
value = RasterPalette.Fixed(count)
C# 
public static RasterColor[] Fixed( 
   int count
)
Managed Extensions for C++ 
public: static RasterColor[]* Fixed( 
   int count
) 
C++/CLI 
public:
static array<RasterColor>^ Fixed( 
   int count
) 

Parameters

count
The number of colors to add to the fixed palette.

Return Value

The LEAD Fixed palette.

Example

For an example, refer to StartDithering

Remarks

The number of colors specified in count controls the type and size of the returned palette:
countLEAD Fixed palette
21-bit palette, with 2 colors, black and white.
42-bit palette, with 4 colors.
83-bit palette, with 8 colors.
164-bit palette, with 16 colors.
325-bit palette, with 32 colors.
646-bit palette, with 64 colors.
1287-bit palette, with 128 colors.
2568-bit palette, with 256 colors.

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