query_paintT_query_paintQueryPaintQueryPaintquery_paint (算子)

名称

query_paintT_query_paintQueryPaintQueryPaintquery_paint — 查询灰度值显示模式。

签名

query_paint( : : WindowHandle : Mode)

Herror T_query_paint(const Htuple WindowHandle, Htuple* Mode)

void QueryPaint(const HTuple& WindowHandle, HTuple* Mode)

HTuple HWindow::QueryPaint() const

static void HOperatorSet.QueryPaint(HTuple windowHandle, out HTuple mode)

HTuple HWindow.QueryPaint()

def query_paint(window_handle: HHandle) -> Sequence[str]

描述

query_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paint returns the names of all gray value display modes (e.g., 'gray', '3d_plot', etc.) for the output window. These modes are used by set_paintset_paintSetPaintSetPaintSetPaintset_paintquery_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paint only returns the names of the display values, not the additional parameters that may be necessary for some modes.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

ModeModeModeModemodemode (输出控制)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Gray value display mode names.

结果

query_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paint returns 2 ( H_MSG_TRUE) if the window is valid.否则将抛出异常。

可能的后继

get_paintget_paintGetPaintGetPaintGetPaintget_paint, set_paintset_paintSetPaintSetPaintSetPaintset_paint, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

另见

set_paintset_paintSetPaintSetPaintSetPaintset_paint, get_paintget_paintGetPaintGetPaintGetPaintget_paint, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

模块

基础