Operator Reference

query_grayT_query_grayQueryGrayQueryGrayquery_gray (Operator)

query_grayT_query_grayQueryGrayQueryGrayquery_gray — Query the displayable gray values.

Signature

query_gray( : : WindowHandle : Grayval)

Herror T_query_gray(const Htuple WindowHandle, Htuple* Grayval)

void QueryGray(const HTuple& WindowHandle, HTuple* Grayval)

HTuple HWindow::QueryGray() const

static void HOperatorSet.QueryGray(HTuple windowHandle, out HTuple grayval)

HTuple HWindow.QueryGray()

def query_gray(window_handle: HHandle) -> Sequence[int]

Description

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

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

WindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

GrayvalGrayvalGrayvalgrayvalgrayval (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Tuple of all displayable gray values.

Result

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

Possible Successors

set_grayset_graySetGraySetGrayset_gray, disp_regiondisp_regionDispRegionDispRegiondisp_region

See also

set_grayset_graySetGraySetGrayset_gray, disp_imagedisp_imageDispImageDispImagedisp_image

Module

Foundation