AtalaImage Constructor (Int32, Int32, PixelFormat, Byte) |
Initializes a new instance of the
AtalaImage class.
Namespace:
Atalasoft.Imaging
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxpublic AtalaImage(
int width,
int height,
PixelFormat pixelFormat,
byte fillPaletteIndex
)
Public Sub New (
width As Integer,
height As Integer,
pixelFormat As PixelFormat,
fillPaletteIndex As Byte
)
Parameters
- width
- Type: System.Int32
The width. - height
- Type: System.Int32
The height. - pixelFormat
- Type: Atalasoft.Imaging.PixelFormat
The pixel format. - fillPaletteIndex
- Type: System.Byte
Index of the fill palette.
ExceptionsException | Condition |
---|
ArgumentException |
Pixel Format must contain a palette when specifying the palette index to fill the image with.
or
Palette Index must be 0 or 1 for 1-bit images;fillPaletteIndex
|
See Also