dev_clear_window ( : : : )

Clear the active graphics window.

dev_clear_window clears the graphics window content and the history of the active window. Parameters assigned to this window (e.g., with dev_set_color, dev_set_draw, etc.) remain unmodified. The operator is equivalent to pressing the Clear button of the active graphics window. A graphics window can be activated by calling dev_set_window.


Attention

If dev_clear_window should be used for exported Code (C++), please note the description of clear_window due to the different semantics in C++.


Example
read_image (Image, 'fabrik')
regiongrowing (Image, Regions, 3, 3, 6, 100)
Number := |Regions|
dev_update_window ('off')
for i := 1 to Number by 1
  RegionSelected := Regions[i]
  dev_clear_window ()
  dev_display (RegionSelected)
  * stop ()
endfor

Result

dev_clear_window always returns 2 (H_MSG_TRUE).


Parallelization Information

dev_clear_window is local and processed completely exclusively without parallelization.


Possible Predecessors

dev_set_window, dev_open_window, dev_display


Possible Successors

dev_display


See also

clear_window


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH