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.
Header
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.