Areas on an Image
You can draw rectangular, circular, or any free-form polygonal shaped area of any size on the image that is available in the cell. You can re-drag and re-size the areas. Select
and
from the tooltip to draw a rectangle and circle. To draw a free-form polygon on the image, select
on the toolbar and click on different points on the image to mark the vertices of the area. Click back at the starting point to complete the area.
In Design
mode, you can do the following to the drawn areas:
Edit an area and enter a name, set color, and opacity level
Delete an area
Configure events to the selected area by choosing Area Settings
. The customized alerts are displayed at runtime.
Note
You can draw overlapping areas on the image. To delete an inner area in overlapping areas, you must delete the outermost area.
You cannot configure icons and graphics for the tags placed on the image.
Value-based Color Changes in Area
The default area color is displayed at runtime. When a tag is placed on the area, the tag color that is evaluated based on the rules takes precedence over the configured area color.
Example
You have configured Yellow
color to an area. You move a tag to the area and configure the tag color to Blue
. In Preview
mode, the area color changes to Blue
when the tag conditions are matched
The change in the area color is valid only for the first tag placed on the area and not applicable when multiple tags are configured on the same area.
When you place a tag on overlapping areas, the color changes affect only the outermost area.
In the Preview
mode, the area is highlighted with the colors specified for the matching condition that is evaluated with the runtime value of the tag. You can configure the colors only when the tag is placed on the area.
You cannot do the following:
Edit and delete multiple areas simultaneously
Reposition the free-form shaped area
Draw a free-form polygonal area within a rectangle or circle area
Select a layout.
Select a image from the projects available in .
Choose
(Configure Graphics
).
To draw a free-form area, choose
. Click at different points on the image.
You must again click the starting point to complete the area. A message Area Created
appears.
Choose Apply
.
To edit an area, select the area and choose
(Edit Area
).
Enter name in Area Name
field.
Choose a color.
The Color Picker
dialog box appears.
Choose the opacity level.
Choose OK
.
Choose Apply
.
To configure the area event, do the following:
Select the area and choose Area Settings
.
A dialog box appears.
Select Call Javascript Function
.
Enter a name in Method Name
field.
You can customize the code in the Source Code
tab. For more information, see Source Code