Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / ToBilevelBitmap Method
The color channel used as the source of the bi-level data.
If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bits of the byte.
If true, indicates that 0 represents white and 1 represents black in the resulting BilevelBitmap.

In This Topic
    ToBilevelBitmap Method
    In This Topic
    Creates a BilevelBitmap from the current GcBitmap.

    This method does not perform any transformations of the color palette. It is expected that the source GcBitmap has already been converted to bi-level palette using some thresholding or dithering effects. The ToBilevelBitmap method just copies data from a specified color channel to a new instance of the BilevelBitmap class.

    Syntax
    'Declaration
     
    Public Function ToBilevelBitmap( _
       Optional ByVal colorChannel As ColorChannel, _
       Optional ByVal lowerBitsFirst As System.Boolean, _
       Optional ByVal whiteIsZero As System.Boolean _
    ) As BilevelBitmap
    public BilevelBitmap ToBilevelBitmap( 
       ColorChannel colorChannel,
       System.bool lowerBitsFirst,
       System.bool whiteIsZero
    )

    Parameters

    colorChannel
    The color channel used as the source of the bi-level data.
    lowerBitsFirst
    If true, pixels are arranged within a byte such that pixels with lower column indices are stored in the lower-order bits of the byte.
    whiteIsZero
    If true, indicates that 0 represents white and 1 represents black in the resulting BilevelBitmap.

    Return Value

    A new instance of BilevelBitmap.
    See Also