dev_set_draw ( : : DrawMode : )

Define the region fill mode.

dev_set_draw defines the region fill mode. If DrawMode is set to 'fill', output regions are filled, if set to 'margin', only contours are displayed. It is used by region output like dev_display, disp_region, disp_circle, disp_rectangle1, disp_rectangle2, disp_arrow, etc. If the mode is 'margin', the contour can be affected by dev_set_line_width, set_line_approx and set_line_style.


Attention

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


Parameters

DrawMode (input_control)
string -> string
Fill mode for region output.
Default value: 'fill'
List of values: 'fill', 'margin'


Example
read_image(Image,'monkey')
threshold(Image,Region,128,255)
dev_clear_window
dev_set_color('red')
dev_set_draw('fill')
dev_display(Region)
dev_set_color('white')
dev_set_draw('margin')
dev_display(Region)

Result

dev_set_draw always returns 2 (H_MSG_TRUE)


Parallelization Information

dev_set_draw is local and processed completely exclusively without parallelization.


Possible Successors

dev_set_line_width, dev_display


See also

set_draw


Module

System



Copyright © 1996-2005 MVTec Software GmbH