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