CVB.Net 14.1
Convert Class Reference

Class with various image conversion functions. More...

Static Public Member Functions

static Image To8BppUnsigned (Image img)
 Convert the input image to an image with 8 bits per pixel unsigned data. More...
 
static Image To16BppUnsigned (Image img)
 Convert the input image to an image with 16 bits per pixel unsigned data. More...
 
static Image To16BppSigned (Image img)
 Convert the input image to an image with 16 bits per pixel signed data. More...
 
static Image To32BppSigned (Image img)
 Convert the input image to an image with 32 bits per pixel signed data. More...
 
static Image To32BppFloat (Image img)
 Convert the input image to an image with 32 bits per pixel float data. More...
 

Detailed Description

Class with various image conversion functions.

Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.

Member Function Documentation

◆ To16BppSigned()

static Image To16BppSigned ( Image  img)
static

Convert the input image to an image with 16 bits per pixel signed data.

Parameters
imgImage to be converted
Returns
Converted image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ To16BppUnsigned()

static Image To16BppUnsigned ( Image  img)
static

Convert the input image to an image with 16 bits per pixel unsigned data.

Parameters
imgImage to be converted
Returns
Converted image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ To32BppFloat()

static Image To32BppFloat ( Image  img)
static

Convert the input image to an image with 32 bits per pixel float data.

Parameters
imgImage to be converted
Returns
Converted image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ To32BppSigned()

static Image To32BppSigned ( Image  img)
static

Convert the input image to an image with 32 bits per pixel signed data.

Parameters
imgImage to be converted
Returns
Converted image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ To8BppUnsigned()

static Image To8BppUnsigned ( Image  img)
static

Convert the input image to an image with 8 bits per pixel unsigned data.

Parameters
imgImage to be converted
Returns
Converted image
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed