imaqRotate2
Usage
int imaqRotate2(Image* dest, const Image* source, float angle, PixelValue fill, InterpolationMethod method, int maintainSize);
Purpose
Rotates an image counterclockwise.
Image Types Supported
IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL, IMAQ_IMAGE_RGB
Parameters
|
Name
|
Type
|
Description
|
|---|---|---|
| dest | Image* | The destination image. |
| source | const Image* | The image to rotate. |
| angle | float | The angle, in degrees, to rotate the image. |
| fill | PixelValue | The value the function applies to the image pixels not covered by the rotated image. |
| method | InterpolationMethod | The method of interpolation. The valid interpolation methods for rotation are IMAQ_ZERO_ORDER and IMAQ_BILINEAR. |
| maintainSize | int | Set this parameter to TRUE to maintain the size of the image. |
Return Value
| Type |
Description |
|---|---|
| int | On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError(). |