XRendering PaletteSize Property. The number of colors in the palette for indexed color output. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Value Read Only Description
[C#] int
[Visual Basic]
Integer
256 No The number of colors in the palette for indexed color output.

 

   

Notes
 

This property is used to specify the number of colors in the palette when using the "Indexed" color space. The valid range for this property is between 2 and 256.

Black and white is always included in the palette. So a PaletteSize of two will always produce a black and white image output.