HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators

set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth (Operator)

Name

set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth — Define the line width for region contour output.

Signature

set_line_width( : : WindowHandle, Width : )

Herror set_line_width(const Hlong WindowHandle, const Hlong Width)

Herror T_set_line_width(const Htuple WindowHandle, const Htuple Width)

Herror set_line_width(const HTuple& WindowHandle, const HTuple& Width)

void HWindow::SetLineWidth(const HTuple& Width) const

void HOperatorSetX.SetLineWidth(
[in] VARIANT WindowHandle, [in] VARIANT Width)

void HWindowX.SetLineWidth([in] Hlong Width)

static void HOperatorSet.SetLineWidth(HTuple windowHandle, HTuple width)

void HWindow.SetLineWidth(int width)

Description

set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth defines the line width (in pixel) in which a region contour is displayed (e.g. with disp_regiondisp_regiondisp_regionDispRegionDispRegion, disp_linedisp_linedisp_lineDispLineDispLine, disp_polygondisp_polygondisp_polygonDispPolygonDispPolygon, etc.) The operator get_line_widthget_line_widthget_line_widthGetLineWidthGetLineWidth returns the current value for the window. Some output devices may not allow to change the contour width. If it is possible for the current device, it can be queried with query_line_widthquery_line_widthquery_line_widthQueryLineWidthQueryLineWidth.

Attention

The line width is important if the output mode was set to 'margin' (see set_drawset_drawset_drawSetDrawSetDraw). If the line width is greater than one, regions may not always be displayed correctly.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window_id.

WidthWidthWidthWidthwidth (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Line width for region output in contour mode.

Default value: 1

Restriction: (Width >= 1) && (Width <= 2000)

Result

set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth returns 2 (H_MSG_TRUE) if the parameter is correct and the window is valid. Otherwise an exception is raised.

Possible Predecessors

query_line_widthquery_line_widthquery_line_widthQueryLineWidthQueryLineWidth, get_line_widthget_line_widthget_line_widthGetLineWidthGetLineWidth

Possible Successors

disp_regiondisp_regiondisp_regionDispRegionDispRegion

See also

get_line_widthget_line_widthget_line_widthGetLineWidthGetLineWidth, query_line_widthquery_line_widthquery_line_widthQueryLineWidthQueryLineWidth, set_drawset_drawset_drawSetDrawSetDraw, disp_regiondisp_regiondisp_regionDispRegionDispRegion

Module

Foundation


Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH