imaqSetImageSize

NI Vision for LabWindows/CVI Function

imaqSetImageSize

Usage

int imaqSetImageSize(Image* image, int width, int height);

Purpose

Sets the size of an image. The original pixels are not transferred to the new image. The new image will contain uninitialized pixels. To resize the image and retain the original information, use imaqScale() or imaqResample().

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_U16, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL, IMAQ_IMAGE_COMPLEX, IMAQ_IMAGE_RGB, IMAQ_IMAGE_HSL, IMAQ_IMAGE_RGB_U64

Parameters

Name

Type

Description

image Image* The image to resize.
width int The new width of the image.
height int The new height 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().