ClassesClassesClassesClasses | | | | Operators

get_paintT_get_paintGetPaintget_paintGetPaintGetPaint (Operator)


get_paintT_get_paintGetPaintget_paintGetPaintGetPaint — Get the current display mode for gray values.


get_paint( : : WindowHandle : Mode)

Herror T_get_paint(const Htuple WindowHandle, Htuple* Mode)

Herror get_paint(const HTuple& WindowHandle, HTuple* Mode)

HTuple HWindow::GetPaint() const

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

HTuple HWindow::GetPaint() const

void HOperatorSetX.GetPaint(
[in] VARIANT WindowHandle, [out] VARIANT* Mode)

VARIANT HWindowX.GetPaint()

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

HTuple HWindow.GetPaint()


get_paintget_paintGetPaintget_paintGetPaintGetPaint returns the display mode for gray values in the window. ModeModeModeModeModemode is used by the operator disp_imagedisp_imageDispImagedisp_imageDispImageDispImage. get_paintget_paintGetPaintget_paintGetPaintGetPaint is used for temporary changes of the gray value display mode. The current value is queried, then changed (with the operator set_paintset_paintSetPaintset_paintSetPaintSetPaint) and finally the old value is written back. The available modes can be viewed with the operator query_paintquery_paintQueryPaintquery_paintQueryPaintQueryPaint. ModeModeModeModeModemode 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_paintSetPaintset_paintSetPaintSetPaint.



WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)


ModeModeModeModeModemode (output_control)  string-array HTupleHTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)

Name and parameter values of the current display mode.


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

Possible Predecessors


Possible Successors

set_paintset_paintSetPaintset_paintSetPaintSetPaint, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage

See also

set_paintset_paintSetPaintset_paintSetPaintSetPaint, query_paintquery_paintQueryPaintquery_paintQueryPaintQueryPaint, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage



ClassesClassesClassesClasses | | | | Operators