Drawing Functions - Overview

The Drawing functions are Frame-based functions and allow you to use a script to change the state of a Frame object in your publication, in particular to draw lines and shapes when the publication is running.

All lines and shapes added to any individual frame are created as part of a single contour (this is a single continuous line). Adding intersecting shapes will produce gaps in the shape. To draw multiple independent shapes, use multiple frame objects.

Hierarchy:

As well as the specific functions listed under the Functions: heading below, you can also use the following OpusScript functions:

image\Script_Button.jpgGraphical Object functions

image\Script_Button.jpgBasic Object functions

Class Hierarchy:

Buttons

image\Hierarchy_Level.jpg Graphical Objects

 image\Hierarchy_Level.jpg Basic Objects

Hierarchy of objects in Opus

Functions:

AddPoint

Add a point to the current contour in the frame

ClearDraw

Remove all script drawing elements from the frame

DrawEllipse

Draw an ellipse in the frame

DrawLine

Draw a line between two points in the frame

DrawRectangle

Draw a rectangle in the frame

DrawRegPoly

Draw a regular polygon (eg triangle or octagon) in the frame

DrawRoundRectangle

Draw a round cornered rectangle in the frame

DrawStar

Draw a star in the frame

RemovePoint

Remove a point from the contour in the frame

SetFillColour

Set the fill colour for the script drawing in the frame

SetLineColour

Set the line colour for the script drawing in the frame

SetLineStyle

Set the line style for the script drawing in the frame