dev_set_contour_styledev_set_contour_styleDevSetContourStyleDevSetContourStyledev_set_contour_style (算子)
名称
dev_set_contour_styledev_set_contour_styleDevSetContourStyleDevSetContourStyledev_set_contour_style — Define the contour display fill style.
签名
dev_set_contour_style( : : Style : )
Herror dev_set_contour_style(const char* Style)
Herror T_dev_set_contour_style(const Htuple Style)
void DevSetContourStyle(const HTuple& Style)
static void HWindow::DevSetContourStyle(const HString& Style)
static void HWindow::DevSetContourStyle(const char* Style)
static void HWindow::DevSetContourStyle(const wchar_t* Style)
(
Windows only)
def dev_set_contour_style(style: str) -> None
描述
dev_set_contour_styledev_set_contour_styleDevSetContourStyleDevSetContourStyleDevSetContourStyledev_set_contour_style defines the fill style of contour displays.
The following values are supported for StyleStyleStyleStylestylestyle:
-
'stroke'"stroke""stroke""stroke""stroke""stroke":Only the line of the contour gets displayed.
-
'fill'"fill""fill""fill""fill""fill":The area enclosed by the contour is filled.
-
'stroke_and_fill'"stroke_and_fill""stroke_and_fill""stroke_and_fill""stroke_and_fill""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_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width。
For all styles the current drawing color is used.
注意
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.
参数
StyleStyleStyleStylestylestyle (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Fill style for contour display.
默认值:
'stroke'
"stroke"
"stroke"
"stroke"
"stroke"
"stroke"
值列表:
'fill'"fill""fill""fill""fill""fill", 'stroke'"stroke""stroke""stroke""stroke""stroke", 'stroke_and_fill'"stroke_and_fill""stroke_and_fill""stroke_and_fill""stroke_and_fill""stroke_and_fill"
结果
If the values of the specified parameters are correct,
dev_set_contour_styledev_set_contour_styleDevSetContourStyleDevSetContourStyleDevSetContourStyledev_set_contour_style 返回 2 ( H_MSG_TRUE )。否则,将抛出一个异常并返回错误代码。
可能的后继
dev_displaydev_displayDevDisplayDevDisplayDevDisplaydev_display
另见
set_contour_styleset_contour_styleSetContourStyleSetContourStyleSetContourStyleset_contour_style
模块
基础