[]
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(ColorChannel, bool, bool) method just copies data from a specified color channel to a new instance of the BilevelBitmap class.
public BilevelBitmap ToBilevelBitmap(ColorChannel colorChannel = ColorChannel.Blue, bool lowerBitsFirst = false, bool whiteIsZero = false)
Public Function ToBilevelBitmap(Optional colorChannel As ColorChannel = ColorChannel.Blue, Optional lowerBitsFirst As Boolean = False, Optional whiteIsZero As Boolean = False) As BilevelBitmap
Type | Name | Description |
---|---|---|
ColorChannel | colorChannel | The color channel used as the source of the bi-level data. |
bool | 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. |
bool | whiteIsZero | If true, indicates that 0 represents white and 1 represents black in the resulting BilevelBitmap. |
Type | Description |
---|---|
BilevelBitmap | A new instance of BilevelBitmap. |