CVB.Net 14.0
Scale Class Reference

Class with various image scaling 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, double minVal, double maxVal)
 Convert the input image to an image with 32 bits per pixel float data. More...
 

Detailed Description

Class with various image scaling functions.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.

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 scaled.
Returns
The scaled 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 scaled.
Returns
The scaled image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ To32BppFloat()

static Image To32BppFloat ( Image  img,
double  minVal,
double  maxVal 
)
static

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

Parameters
imgImage to be scaled.
minValMinimum value to occur in the output image
maxValMaximum value to occur in the output image
Returns
The scaled 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 scaled.
Returns
The scaled 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 scaled.
Returns
The scaled image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed