Skip to content

query_grayQueryGrayQueryGrayquery_grayT_query_gray🔗

Short description🔗

query_grayQueryGrayQueryGrayquery_grayT_query_gray — Query the displayable gray values.

Signature🔗

query_gray( window WindowHandle, out integer Grayval )void QueryGray( const HTuple& WindowHandle, HTuple* Grayval )static void HOperatorSet.QueryGray( HTuple windowHandle, out HTuple grayval )def query_gray( window_handle: HHandle ) -> Sequence[int]

Herror T_query_gray( const Htuple WindowHandle, Htuple* Grayval )

HTuple HWindow::QueryGray( ) const

HTuple HWindow.QueryGray( )

Description🔗

query_grayQueryGray returns all gray values that are used for gray value output (disp_imageDispImage) and that can be reproduced exactly in the window. They can be set with the set_graySetGray call.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Grayvalgrayvalgrayval (output_control) integer-array → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Tuple of all displayable gray values.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible successors

set_graySetGray, disp_regionDispRegion

See also

set_graySetGray, disp_imageDispImage

Module🔗

Foundation