HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators

get_paintT_get_paintget_paintGetPaintGetPaint (Operator)

Name

get_paintT_get_paintget_paintGetPaintGetPaint — Get the current display mode for gray values.

Signature

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 HOperatorSetX.GetPaint(
[in] VARIANT WindowHandle, [out] VARIANT* Mode)

VARIANT HWindowX.GetPaint()

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

HTuple HWindow.GetPaint()

Description

get_paintget_paintget_paintGetPaintGetPaint returns the display mode for gray values in the window. ModeModeModeModemode is used by the operator disp_imagedisp_imagedisp_imageDispImageDispImage. get_paintget_paintget_paintGetPaintGetPaint is used for temporary changes of the gray value display mode. The current value is queried, then changed (with set_paintset_paintset_paintSetPaintSetPaint) and finally the old value is written back. The available modes can be viewed with the operator query_paintquery_paintquery_paintQueryPaintQueryPaint. ModeModeModeModemode 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_paintset_paintSetPaintSetPaint.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window_id.

ModeModeModeModemode (output_control)  string-array HTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)

Name and parameter values of the current display mode.

Result

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

Possible Predecessors

query_paintquery_paintquery_paintQueryPaintQueryPaint

Possible Successors

set_paintset_paintset_paintSetPaintSetPaint, disp_regiondisp_regiondisp_regionDispRegionDispRegion, disp_imagedisp_imagedisp_imageDispImageDispImage

See also

set_paintset_paintset_paintSetPaintSetPaint, query_paintquery_paintquery_paintQueryPaintQueryPaint, disp_imagedisp_imagedisp_imageDispImageDispImage

Module

Foundation


Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH