Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / ToIndexed4bppBitmap Method / ToIndexed4bppBitmap(Int32,Boolean,Boolean) Method
The maximum number of opaque colors in the palette, from 8 to 16.
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 16.
If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bit tetrads of the byte.

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

    Parameters

    maxColors
    The maximum number of opaque colors in the palette, from 8 to 16.
    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 16.
    lowerBitsFirst
    If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bit tetrads of the byte.

    Return Value

    A new instance of Indexed4bppBitmap.
    See Also