Ets_Shape_Icon_Create()

Note: Requires OPNET Development Kit

Abstract

Creates a new icon shape.

Syntax

Ets_Shape_Icon_Create (center_x, center_y, icon_name, color, size, is_transparent)
Argument Type Description
center_x double The x coordinate of the icon’s center.
center_y double The y coordinate of the icon’s center.
icon_name EtsT_Shape_Icon_Name The name of the icon, as given in an icon database.
color EtsT_Color The color of the icon. (See Shape Colors for details.) For icons with a transparency mask, this color is used to fill any non-transparent parts of the image.
size int The size of the displayed icon, in pixels. If size is 0, the icon will be displayed at its original size (that is, not scaled).
is_transparent EstT_Boolean Whether or not icon transparency should be used.

Return Type

EtsT_Shape_Handle

A handle to the new shape.

ets_api_shapeset.h

Details

This function creates a new shape using an icon from an icon database.

The is_transparent argument controls what parts of the background are visible in an icon. For more details about icon transparency, refer to Chapter 18 “Icon Database Editor” on page 614.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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