Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / ToIndexed8bppBitmap Method / ToIndexed8bppBitmap(Int32,Boolean) Method
The maximum number of opaque colors in the palette, from 8 to 256.
Indicates if a transparent color should be added to the palette, if the image is not opaque and the number of opaque colors is less than 256.

In This Topic
    ToIndexed8bppBitmap(Int32,Boolean) Method
    In This Topic
    Creates an opaque Indexed8bppBitmap from the current image using the Octree quantizer algorithm.
    Syntax
    'Declaration
     
    Public Overloads Function ToIndexed8bppBitmap( _
       ByVal maxColors As System.Integer, _
       Optional ByVal appendTransparentColor As System.Boolean _
    ) As Indexed8bppBitmap
    public Indexed8bppBitmap ToIndexed8bppBitmap( 
       System.int maxColors,
       System.bool appendTransparentColor
    )

    Parameters

    maxColors
    The maximum number of opaque colors in the palette, from 8 to 256.
    appendTransparentColor
    Indicates if a transparent color should be added to the palette, if the image is not opaque and the number of opaque colors is less than 256.

    Return Value

    A new instance of Indexed8bppBitmap.
    See Also