Ets_Shape_Ellipse_Create()

Note: Requires OPNET Development Kit

Abstract

Creates a new ellipse shape.

Syntax

Ets_Shape_Ellipse_Create (box, edge_line_width, edge_line_style, edge_line_color, fill_pattern, fill_fore_color, fill_back_color)
Argument Type Description
box EtsT_Shape_Rect A rectangle defining the desired ellipse. See Shape Data Types for details on the box coordinates.
edge_line_width int The width of the line, in pixels.
edge_line_style EtsT_Shape_Line_Style The style of the line, either EtsC_Shape_Line_Solid or EtsC_Shape_Line_None (invisible).
edge_line_color EtsT_Color The color of the line. See Table 26 for details.
fill_pattern EtsT_Shape_Brush_Name Pattern for filling the ellipse (see Brush Name for details).
fill_fore_color EtsT_Color Foreground color for fill patterns. Transparent if unspecified. See Shape Colors for details.
fill_back_color EtsT_Color Background color for fill patterns. Transparent if unspecified. See Shape Colors for details.

Return Type

EtsT_Shape_Handle

A handle to the new shape.

ets_api_shapeset.h

Details

The ellipse is drawn within the defined box. For example, in Figure 7, the thick red line shows the ellipse drawn within a specified box.

Figure 7: Specifying an Ellipse Shape

Specifying an Ellipse Shape

Brush Name

The fill pattern can be either an icon name (in which case the shape is filled with tiled copies of the icon), EtsC_Shape_Brush_None (transparent fill), or EtsC_Shape_Brush_Solid (solid fill using the foreground color). If an icon is specified, its non-transparent areas are displayed using the foreground color and transparent areas use the background color.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com