Skip to content

dev_set_contour_styleπŸ”—

Short descriptionπŸ”—

dev_set_contour_style β€” Define the contour display fill style.

SignatureπŸ”—

dev_set_contour_style( string Style )

DescriptionπŸ”—

dev_set_contour_style defines the fill style of contour displays. The following values are supported for Style:

  • 'stroke': Only the line of the contour gets displayed.

  • 'fill': The area enclosed by the contour is filled.

  • 'stroke_and_fill': The line of the contour gets displayed and the enclosed area filled. especially makes a difference for larger line widths, see set_line_width.

For all styles the current drawing color is used.

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πŸ”—

Style (input_control) string β†’ (string)

Fill style for contour display.

Default: 'stroke'
List of values: 'fill', 'stroke', 'stroke_and_fill'

ResultπŸ”—

If the values of the specified parameters are correct, dev_set_contour_style returns 2 (H_MSG_TRUE). Otherwise, an exception is raised and an error code returned.

Combinations with other operatorsπŸ”—

Combinations

Possible successors

dev_display

See also

set_contour_style

ModuleπŸ”—

Foundation