Ets_Shape_Icon_Info_Get()

注意: 需要 OPNET Development Kit

摘要

获取图标的形状属性。

语法

Ets_Shape_Icon_Info_Get (icon_shape_hndl, center_x, center_y, icon_name, color, size, is_transparent)
参数 类型 说明
icon_shape_hndl EtsT_Shape_Handle 目标图标形状的句柄。
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_Compcode

EtsC_Compcode_Success;若传入的形状句柄不是图标,则为 EtsC_Compcode_Failure。

头文件

ets_api_shapeset.h

详情

关于该形状各参数的详细说明,见 Ets_Shape_Icon_Create()。

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