Herror ::get_paint (
    const HTuple &WindowHandle,
    HTuple *Mode
)
HTuple HWindow::GetPaint (
    
) const

Get the current display mode for grayvalues.

::get_paint returns the display mode for grayvalues in the window. Mode is used by the procedure ::disp_image. ::get_paint is used for temporary changes of the grayvalue display mode. The current value is queried, then changed (with procedure ::set_paint) and finally the old value is written back. The available modes can be viewed with the procedure ::query_paint. Mode 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_paint.


Parameters

WindowHandle (input_control)
window -> HTuple.long
Window_id.

Mode (output_control)
string-array -> HTuple.char * / long *
Name and parameter values of the current display mode.


Result

::get_paint returns H_MSG_TRUE if the window is valid. Otherwise an exception handling is raised.


Possible Predecessors

::query_paint


Possible Successors

::set_paint, ::disp_region, ::disp_image


See also

::set_paint, ::query_paint, ::disp_image


Module

System



Copyright © 1996-2002 MVTec Software GmbH