imaqRotate

NI Vision for LabWindows/CVI Function

imaqRotate

Usage

int imaqRotate(Image* dest, const Image* source, float angle, PixelValue fill, InterpolationMethod method);

Purpose

Rotates an image counterclockwise.

Note  This function is obsolete. The replacement function is imaqRotate2().

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.

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().