CVB.Net 14.0
DataType Struct Reference

Data type description for a Image plane. More...

Public Member Functions

override bool Equals (object obj)
 Comparison function. More...
 
override int GetHashCode ()
 Hash code. More...
 
override string ToString ()
 Gets a string representation of this data type. More...
 

Static Public Member Functions

static DataType FromUnmanagedDescriptor (Int32 dataTypeDescriptor)
 Construct a data type descriptor from one of the native library's unmanaged descriptor values. More...
 
static bool operator== (DataType lhs, DataType rhs)
 Comparison operator for DataType objects. More...
 
static bool operator!= (DataType lhs, DataType rhs)
 Comparison operator for DataType objects. More...
 

Properties

int BitsPerPixel [get]
 Number of actually valid bits per pixel.
 
int BytesPerPixel [get]
 Number of bytes that each pixel occupies.
 
bool IsFloat [get]
 Gets whether the plane's pixels have floating point values. More...
 
bool IsSignedInteger [get]
 Gets whether the plane's pixels have signed integer values. More...
 
bool IsUnsignedInteger [get]
 Gets whether the plane's pixels have unsigned integer values.
 
bool HasOverlayBit [get]
 Gets whether bit 0 of the plane's pixels is being used as an overlay indicator bit. More...
 
bool IsComplexPacked [get]
 Indicates whether or not the plane contains a complex packed image format that makes use of the hermitian symmetries in images resulting from Fourier transformation of a real-valued image. More...
 
double MinVal [get]
 Minimum pixel value that fits this data type
 
double MaxVal [get]
 Maximum pixel value that fits this data type
 
PixelDataType NumericType [get]
 Returns the basic numeric type of the pixels.
 
Type ClrType [get]
 Returns a type object that indicates the appropriate CLR type (where applicable) in which to store pixels of the given data type or null if no appropriate CLR type exists.
 
double UndefinedVal [get]
 Pixel value for those pixels whose value cannot be defined properly e.g. where in scanning situations pixels outside the image are accessed
 
Int32 NativeDescriptor [get]
 Native data type value.
 

Detailed Description

Data type description for a Image plane.

Member Function Documentation

◆ Equals()

override bool Equals ( object  obj)

Comparison function.

Parameters
objObject to compare to
Returns
true if obj == this, false otherwise

◆ FromUnmanagedDescriptor()

static DataType FromUnmanagedDescriptor ( Int32  dataTypeDescriptor)
static

Construct a data type descriptor from one of the native library's unmanaged descriptor values.

Parameters
dataTypeDescriptorUnmanaged descriptor value.
Returns
Data type descriptor object.

◆ GetHashCode()

override int GetHashCode ( )

Hash code.

Returns
Hash code

◆ operator!=()

static bool operator!= ( DataType  lhs,
DataType  rhs 
)
static

Comparison operator for DataType objects.

Parameters
lhsLeft hand side object
rhsRight hand side object
Returns
false if the left hand side object and the right hand side object are identical, true otherwise

◆ operator==()

static bool operator== ( DataType  lhs,
DataType  rhs 
)
static

Comparison operator for DataType objects.

Parameters
lhsLeft hand side object
rhsRight hand side object
Returns
true if the left hand side object and the right hand side object are identical, false otherwise

◆ ToString()

override string ToString ( )

Gets a string representation of this data type.

The following prefixes are available:

fFloating point image. sSigned integer image. cpComplex packed image. If no prefix is displayed it is an unsigned integer image. The postfix '(o)' means that the image uses an overlay bit.
Returns
Short string representation of the data type.

Property Documentation

◆ HasOverlayBit

bool HasOverlayBit
get

Gets whether bit 0 of the plane's pixels is being used as an overlay indicator bit.

true/false

◆ IsComplexPacked

bool IsComplexPacked
get

Indicates whether or not the plane contains a complex packed image format that makes use of the hermitian symmetries in images resulting from Fourier transformation of a real-valued image.

Image infos of this type are usually not usable directly.

true/false

◆ IsFloat

bool IsFloat
get

Gets whether the plane's pixels have floating point values.

true/false

◆ IsSignedInteger

bool IsSignedInteger
get

Gets whether the plane's pixels have signed integer values.

true/false