[]
Initializes a new instance of the BilevelBitmap class.
public BilevelBitmap(int pixelWidth, int pixelHeight, bool lowerBitsFirst = false, bool transparencyMask = false, bool whiteIsZero = false, float dpiX = 96, float dpiY = 96)
Public Sub New(pixelWidth As Integer, pixelHeight As Integer, Optional lowerBitsFirst As Boolean = False, Optional transparencyMask As Boolean = False, Optional whiteIsZero As Boolean = False, Optional dpiX As Single = 96, Optional dpiY As Single = 96)
Type | Name | Description |
---|---|---|
int | pixelWidth | The width of the image, in pixels. |
int | pixelHeight | The height of the image, in pixels. |
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 | transparencyMask | If true, the image is used to define an irregularly shaped region of another image. |
bool | whiteIsZero | If true, specifies that 0 represents white and 1 represents black. |
float | dpiX | The horizontal dpi of the image. |
float | dpiY | The vertical dpi of the image. |
Initializes a new instance of the BilevelBitmap class and sets the existing pixel data to be read/modified in-place.
public BilevelBitmap(byte[] pixelData, int pixelWidth, int pixelHeight, bool lowerBitsFirst = false, bool transparencyMask = false, bool whiteIsZero = false, float dpiX = 96, float dpiY = 96)
Public Sub New(pixelData As Byte(), pixelWidth As Integer, pixelHeight As Integer, Optional lowerBitsFirst As Boolean = False, Optional transparencyMask As Boolean = False, Optional whiteIsZero As Boolean = False, Optional dpiX As Single = 96, Optional dpiY As Single = 96)
Type | Name | Description |
---|---|---|
byte[] | pixelData | The pixel data to be attached to a BilevelBitmap. |
int | pixelWidth | The width of the image, in pixels. |
int | pixelHeight | The height of the image, in pixels. |
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 | transparencyMask | If true, the image is used to define an irregularly shaped region of another image. |
bool | whiteIsZero | If true, specifies that 0 represents white and 1 represents black. |
float | dpiX | The horizontal dpi of the image. |
float | dpiY | The vertical dpi of the image. |
Initializes a new instance of the BilevelBitmap class and sets the existing pixel data to be read/modified in-place.
public BilevelBitmap(IntPtr pixelData, int pixelWidth, int pixelHeight, bool lowerBitsFirst = false, bool transparencyMask = false, bool whiteIsZero = false, float dpiX = 96, float dpiY = 96)
Public Sub New(pixelData As IntPtr, pixelWidth As Integer, pixelHeight As Integer, Optional lowerBitsFirst As Boolean = False, Optional transparencyMask As Boolean = False, Optional whiteIsZero As Boolean = False, Optional dpiX As Single = 96, Optional dpiY As Single = 96)
Type | Name | Description |
---|---|---|
IntPtr | pixelData | The pixel data to be attached to a BilevelBitmap. |
int | pixelWidth | The width of the image, in pixels. |
int | pixelHeight | The height of the image, in pixels. |
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 | transparencyMask | If true, the image is used to define an irregularly shaped region of another image. |
bool | whiteIsZero | If true, specifies that 0 represents white and 1 represents black. |
float | dpiX | The horizontal dpi of the image. |
float | dpiY | The vertical dpi of the image. |