imaqGetWindowDisplayMapping

NI Vision for LabWindows/CVI Function

imaqGetWindowDisplayMapping

Usage

int imaqGetWindowDisplayMapping(int windowNum, DisplayMapping* mapping);

Purpose

Gets the pixel mapping policy for displaying 16-bit images of an unspecified bit depth. 16-bit grayscale images cannot be displayed with their full resolution on 32-bit color displays using common video adapters limited to 8-bit resolution/per pixel/color. You must map 16-bit images to the 8-bit range (0 to 255).

Parameters

Name

Type

Description

windowNum int The number of the window whose pixel mapping policy the function gets.
mapping DisplayMapping* On return, describes the mapping policy for the selected window. This parameter is required and cannot be NULL.

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