CVB.Net 14.0
Transform2D Class Reference

Collection of 2D transformation functions (most of them linear). More...

Static Public Member Functions

static Image Matrix (Image image, Matrix2D matrix)
 Use a matrix to transform an image using Interpolation.Linear interpolation. More...
 
static Image Matrix (Image image, Matrix2D matrix, Interpolation interpolation)
 Use a matrix to transform an image . More...
 
static Image Mirror (Image image, Axis axis)
 Mirror the input image on the x and/or y axis. More...
 
static Image Perspective (Image image, PerspectiveTransformation coeffs, Size2D targetSize)
 Apply the perspective transformation coeffs to the image using Interpolation.Linear interpolation. More...
 
static Image Perspective (Image image, PerspectiveTransformation coeffs, Size2D targetSize, Interpolation interpolation)
 Apply the perspective transformation coeffs to the image . More...
 
static Image Resize (Image image, Size2D targetSize)
 Resize the input image using Interpolation.Linear interpolation. More...
 
static Image Resize (Image image, Size2D targetSize, Interpolation interpolation)
 Resize the input image . More...
 
static Image Rotate (Image image, Angle angle)
 Rotate the input image by the given angle using Interpolation.Linear interpolation. More...
 
static Image Rotate (Image image, Angle angle, Interpolation interpolation)
 Rotate the input image by the given angle . More...
 
static Image Shear (Image image, double shearX, double shearY)
 Shear the input image using Interpolation.Linear interpolation. More...
 
static Image Shear (Image image, double shearX, double shearY, Interpolation interpolation)
 Shear the input image. More...
 

Detailed Description

Collection of 2D transformation functions (most of them linear).

Member Function Documentation

◆ Matrix() [1/2]

static Image Matrix ( Image  image,
Matrix2D  matrix 
)
static

Use a matrix to transform an image using Interpolation.Linear interpolation.

Parameters
imageImage to transform.
matrixMatrix with which the image is to be transformed.
Returns
The transformed image.

◆ Matrix() [2/2]

static Image Matrix ( Image  image,
Matrix2D  matrix,
Interpolation  interpolation 
)
static

Use a matrix to transform an image .

Parameters
imageImage to transform.
matrixMatrix with which the image is to be transformed.
interpolationInterpolation to use.
Returns
The transformed image.

◆ Mirror()

static Image Mirror ( Image  image,
Axis  axis 
)
static

Mirror the input image on the x and/or y axis.

Parameters
imageImage to mirror.
axisAxis(es) around which it is to be flipped.
Returns
The mirrored image.

◆ Perspective() [1/2]

static Image Perspective ( Image  image,
PerspectiveTransformation  coeffs,
Size2D  targetSize 
)
static

Apply the perspective transformation coeffs to the image using Interpolation.Linear interpolation.

Parameters
imageImage to transform.
coeffsPerspective transformaton coefficients.
targetSizeSize of the destination image.
Returns
The transformed image.
Exceptions
ArgumentNullExceptionIf image is null.
ObjectDisposedExceptionIf image has been disposed.

◆ Perspective() [2/2]

static Image Perspective ( Image  image,
PerspectiveTransformation  coeffs,
Size2D  targetSize,
Interpolation  interpolation 
)
static

Apply the perspective transformation coeffs to the image .

Parameters
imageImage to transform.
coeffsPerspective transformaton coefficients.
targetSizeSize of the destination image.
interpolationInterpolation to use.
Returns
The transformed image.
Exceptions
ArgumentNullExceptionIf image is null.
ObjectDisposedExceptionIf image has been disposed.

◆ Resize() [1/2]

static Image Resize ( Image  image,
Size2D  targetSize 
)
static

Resize the input image using Interpolation.Linear interpolation.

Parameters
imageImage to resize.
targetSizeSize to go with it.
Returns
The resized image.

◆ Resize() [2/2]

static Image Resize ( Image  image,
Size2D  targetSize,
Interpolation  interpolation 
)
static

Resize the input image .

Parameters
imageImage to resize.
targetSizeSize to go with it.
interpolationInterpolation to use.
Returns
The resized image.

◆ Rotate() [1/2]

static Image Rotate ( Image  image,
Angle  angle 
)
static

Rotate the input image by the given angle using Interpolation.Linear interpolation.

Parameters
imageImage to rotate.
angleAngle by which it is to be rotated.
Returns
Rotated image.

◆ Rotate() [2/2]

static Image Rotate ( Image  image,
Angle  angle,
Interpolation  interpolation 
)
static

Rotate the input image by the given angle .

Parameters
imageImage to rotate.
angleAngle by which it is to be rotated.
interpolationInterpolation to use (may be Interpolation.Linear or Interpolation.Cubic).
Returns
Rotated image.

◆ Shear() [1/2]

static Image Shear ( Image  image,
double  shearX,
double  shearY 
)
static

Shear the input image using Interpolation.Linear interpolation.

Parameters
imageImage to shear.
shearXShear factor in x-direction.
shearYShear factor in y-direction.
Returns
The sheared image.

◆ Shear() [2/2]

static Image Shear ( Image  image,
double  shearX,
double  shearY,
Interpolation  interpolation 
)
static

Shear the input image.

Parameters
imageImage to shear.
shearXShear factor in x-direction.
shearYShear factor in y-direction.
interpolationInterpolation to use.
Returns
The sheared image.