Image Constructor (Int32, Int32, Int32, PixelDataType, Int32)

CVB.Net Documentation
Creates an uninitialized image with the given width and height, numPlanes infos.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public Image(
	int width,
	int height,
	int numPlanes,
	PixelDataType dataType,
	int bitDepth
)

Parameters

width
Type: SystemInt32
Width of the image in pixels.
height
Type: SystemInt32
Height of the image in pixels.
numPlanes
Type: SystemInt32
Number of (color) infos.
dataType
Type: Stemmer.CvbPixelDataType
Pixel data type.
bitDepth
Type: SystemInt32
Bits per pixel per plane.
Exceptions

ExceptionCondition
ArgumentExceptionIf dataType has an invalid value.
ArgumentOutOfRangeExceptionIf width, height are negative; if numPlanes is smaller than one; or if bitDepth is out of range.
InsufficientMemoryExceptionIf not enough memory is available to create the image.
Remarks

This constructor defines also the all plane's pixels data format via the dataType and bitDepth.

Allowed bit depth for integer images are:

  • 8 to 64 bits
For float images:
  • 32 bits
  • 64 bits

See Also

Reference