Ets_Shape_Icon_Create()

注意: 需要 OPNET Development Kit

摘要

创建一个新的图标形状。

语法

Ets_Shape_Icon_Create (center_x, center_y, icon_name, color, size, is_transparent)
参数 类型 说明
center_x double 图标中心的 x 坐标。
center_y double 图标中心的 y 坐标。
icon_name EtsT_Shape_Icon_Name 图标名称,取自图标数据库。
color EtsT_Color 图标的颜色。(详见 Shape Colors。)对于带透明掩膜的图标,此颜色用于填充图像的非透明部分。
size int 显示图标的大小,单位为像素。如果 size 为 0,图标将以其原始尺寸显示(即不缩放)。
is_transparent EstT_Boolean 是否使用图标透明性。

返回类型

EtsT_Shape_Handle

新形状的句柄。

头文件

ets_api_shapeset.h

详情

该函数使用图标数据库中的图标创建新形状。

is_transparent 参数控制图标中背景的哪些部分可见。有关图标透明性的更多详细说明,参见 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