ClassesClassesClassesClasses | | | | Operators

set_drawset_drawSetDrawset_drawSetDrawSetDraw (Operator)

Name

set_drawset_drawSetDrawset_drawSetDrawSetDraw — Define the region fill mode.

Signature

set_draw( : : WindowHandle, Mode : )

Herror set_draw(const Hlong WindowHandle, const char* Mode)

Herror T_set_draw(const Htuple WindowHandle, const Htuple Mode)

Herror set_draw(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetDraw(const HTuple& Mode) const

void SetDraw(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetDraw(const HString& Mode) const

void HWindow::SetDraw(const char* Mode) const

void HOperatorSetX.SetDraw(
[in] VARIANT WindowHandle, [in] VARIANT Mode)

void HWindowX.SetDraw([in] BSTR Mode)

static void HOperatorSet.SetDraw(HTuple windowHandle, HTuple mode)

void HWindow.SetDraw(string mode)

Description

set_drawset_drawSetDrawset_drawSetDrawSetDraw defines the region fill mode. If ModeModeModeModeModemode is set to 'fill', output regions are filled, if set to 'margin', only contours are displayed. Setting ModeModeModeModeModemode only affects the valid window. It is used by operators with region output like disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, disp_circledisp_circleDispCircledisp_circleDispCircleDispCircle, disp_rectangle1disp_rectangle1DispRectangle1disp_rectangle1DispRectangle1DispRectangle1, disp_rectangle2disp_rectangle2DispRectangle2disp_rectangle2DispRectangle2DispRectangle2, disp_arrowdisp_arrowDispArrowdisp_arrowDispArrowDispArrow etc. It is also used by operators with gray value output for some gray value output modes (e.g. 'histogram', see set_paintset_paintSetPaintset_paintSetPaintSetPaint). If the mode is 'margin', the contour can be affected with set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_line_approxset_line_approxSetLineApproxset_line_approxSetLineApproxSetLineApprox and set_line_styleset_line_styleSetLineStyleset_line_styleSetLineStyleSetLineStyle.

Attention

If the output mode is 'margin' and the line width is more than one, objects may not be displayed.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window_id.

ModeModeModeModeModemode (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Fill mode for region output.

Default value: 'fill' "fill" "fill" "fill" "fill" "fill"

List of values: 'fill'"fill""fill""fill""fill""fill", 'margin'"margin""margin""margin""margin""margin"

Result

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

Possible Predecessors

get_drawget_drawGetDrawget_drawGetDrawGetDraw

Possible Successors

disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion

See also

get_drawget_drawGetDrawget_drawGetDrawGetDraw, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, set_paintset_paintSetPaintset_paintSetPaintSetPaint, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_line_styleset_line_styleSetLineStyleset_line_styleSetLineStyleSetLineStyle

Module

Foundation


ClassesClassesClassesClasses | | | | Operators