dev_set_drawπ
Short descriptionπ
dev_set_draw β Define the region fill mode.
Signatureπ
dev_set_draw( string DrawMode )
Descriptionπ
dev_set_draw defines the fill mode for regions.
If DrawMode is set to 'fill', regions are displayed
filled, if set to 'margin', only contours are displayed.
In the 'margin' mode, the appearance of the contours can be
affected by dev_set_line_width and set_line_style.
For more information see the description of the operator set_draw.
However, in contrast to that operator the draw mode is also used for
all new graphics windows that are opened afterwards.
Attentionπ
Using the code export feature of HDevelop, the code that is generated
for this operator may have a different behavior than the related
HALCON operator.
For a detailed description of the code export of HDevelop graphics
operators into the different programming languages see in the
βHDevelop User's Guideβ the chapter Code Export
-> General Aspects of Code Generation
-> Graphics Windows.
Parametersπ
DrawMode (input_control) string β (string)
Fill mode for region output.
Default: 'fill'
List of values: 'fill', 'margin'
Exampleπ
(HDevelop)
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π
If the values of the specified parameters are correct,
dev_set_draw returns 2 (H_MSG_TRUE). Otherwise, an
exception is raised and an error code returned.
Combinations with other operatorsπ
Moduleπ
Foundation