query_gray ( : : WindowHandle : Grayval )

Query the displayable grayvalues.

query_gray returns all grayvalues that are used for grayvalue output (disp_image) and that can be reproduced exactly in the window. They can be set with the set_gray call. The number of displayable grayvalues can be set with set_system(::'num_gray_*',...:) before opening the first window.


Parameters

WindowHandle (input_control)
window -> integer
Window_id.

Grayval (output_control)
integer-array -> integer
Tuple of all displayable grayvalues.


Result

query_gray returns 2 (H_MSG_TRUE), if the window is valid. Otherwise an exception handling is raised.


Parallelization Information

query_gray is reentrant, local, and processed without parallelization.


Possible Successors

set_gray, disp_region


See also

set_gray, disp_image


Module

System



Copyright © 1996-2005 MVTec Software GmbH