Herror ::query_gray (
    const HTuple &WindowHandle,
    HTuple *Grayval
)
HTuple HWindow::QueryGray (
    
) const

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 -> HTuple.long
Window_id.

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


Result

::query_gray returns H_MSG_TRUE, if the window is valid. Otherwise an exception handling is raised.


Possible Successors

::set_gray, ::disp_region


See also

::set_gray, ::disp_image


Module

System



Copyright © 1996-2002 MVTec Software GmbH