get_paintT_get_paintGetPaintGetPaintget_paint (算子)

名称

get_paintT_get_paintGetPaintGetPaintget_paint — 获取灰度值的当前显示模式。

签名

get_paint( : : WindowHandle : Mode)

Herror T_get_paint(const Htuple WindowHandle, Htuple* Mode)

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

HTuple HWindow::GetPaint() const

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

HTuple HWindow.GetPaint()

def get_paint(window_handle: HHandle) -> Sequence[Union[str, int, float]]

描述

get_paintget_paintGetPaintGetPaintGetPaintget_paint returns the display mode for gray values in the window. ModeModeModeModemodemode is used by the operator disp_imagedisp_imageDispImageDispImageDispImagedisp_imageget_paintget_paintGetPaintGetPaintGetPaintget_paint is used for temporary changes of the gray value display mode. The current value is queried, then changed (with the operator set_paintset_paintSetPaintSetPaintSetPaintset_paint) and finally the old value is written back. The available modes can be viewed with the operator query_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paintModeModeModeModemodemode is the name of the display mode. If a mode can be customized with parameters, the parameter values are passed in a tuple after the mode name. The order of values is the same as in set_paintset_paintSetPaintSetPaintSetPaintset_paint

执行信息

参数

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

窗口句柄。

ModeModeModeModemodemode (输出控制)  string-array HTupleSequence[Union[str, int, float]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Name and parameter values of the current display mode.

结果

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

可能的前趋

query_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paint

可能的后继

set_paintset_paintSetPaintSetPaintSetPaintset_paint, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

另见

set_paintset_paintSetPaintSetPaintSetPaintset_paint, query_paintquery_paintQueryPaintQueryPaintQueryPaintquery_paint, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

模块

基础