ClassesClassesClassesClasses | | | | Operators

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

dev_set_line_widthdev_set_line_widthDevSetLineWidthdev_set_line_widthDevSetLineWidthDevSetLineWidth (Operator)

Name

dev_set_line_widthdev_set_line_widthDevSetLineWidthdev_set_line_widthDevSetLineWidthDevSetLineWidth — Define the line width for region contour output.

Signature

dev_set_line_width( : : LineWidth : )

Herror dev_set_line_width(const Hlong LineWidth)

Herror T_dev_set_line_width(const Htuple LineWidth)

Herror dev_set_line_width(const HTuple& LineWidth)

void HWindow::DevSetLineWidth(const HTuple& LineWidth) const

void DevSetLineWidth(const HTuple& LineWidth)

static void HWindow::DevSetLineWidth(Hlong LineWidth)

void HOperatorSetX.DevSetLineWidth([in] VARIANT LineWidth)

void HWindowX.DevSetLineWidth([in] Hlong LineWidth)

static void HOperatorSet.DevSetLineWidth(HTuple lineWidth)

static void HWindow.DevSetLineWidth(int lineWidth)

Description

dev_set_line_widthdev_set_line_widthDevSetLineWidthdev_set_line_widthDevSetLineWidthDevSetLineWidth defines the line width (in pixel) that is used to display region contours (in 'margin'"margin""margin""margin""margin""margin" mode), XLDs, and other geometric output (e.g., disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, disp_linedisp_lineDispLinedisp_lineDispLineDispLine, etc.).

For more information see the description of the operator set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth. However, in contrast to that operator the new line width 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

LineWidthLineWidthLineWidthLineWidthLineWidthlineWidth (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Line width for region output in contour mode.

Default value: 1

Restriction: LineWidth >= 1

Example (HDevelop)

read_image(Image,'monkey')
threshold(Image,Region,128,255)
dev_set_draw('margin')
dev_set_line_width(5)
dev_clear_window ()
dev_display(Region)

Result

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

Possible Successors

dev_displaydev_displayDevDisplaydev_displayDevDisplayDevDisplay

See also

set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, query_line_widthquery_line_widthQueryLineWidthquery_line_widthQueryLineWidthQueryLineWidth

Module

Foundation


ClassesClassesClassesClasses | | | | Operators