PETRONODE

3.5. Shape plotting

The following methods are used to plot shapes on montages.

Statement shape. Plots a shape on slide.

shape (x, y, dx, dy, Shape, lSize, fColor, bColor)

    x (optional) - horizontal position. Default is 0.

    y (optional) - vertical position. Default is 0.

    dx (optional) - horizontal size. Default is from the x to the slide right boundary.

    dy (optional) - vertical size. Default is from the y to the slide bottom boundary.

    Shape (optional) - shape form. Use:

        rectangle (default),

        ellipse,

        cross,

        xcross,

        upline,

        dnline,

        vline

        hline

    lSize (optional) - line size. Default is 1.

    fColor (optional) - font colour in ARGB format, e.g. 00000000 - black. black is a default.

    bColor (optional) - shape fill in ARGB format, e.g. FFFFFFFF - white. White is a default.

Statement shapeover. Plots a shape on slide, preserving content under it.

shape (x, y, dx, dy, Shape, lSize, fColor)

    x (optional) - horizontal position. Default is 0.

    y (optional) - vertical position. Default is 0.

    dx (optional) - horizontal size. Default is from the x to the slide right boundary.

    dy (optional) - vertical size. Default is from the y to the slide bottom boundary.

    Shape (optional) - shape form. Use:

        rectangle (default),

        ellipse,

        cross,

        xcross,

        upline,

        dnline,

        vline

        hline

    lSize (optional) - line size. Default is 1.

    fColor (optional) - font colour in ARGB format, e.g. 00000000 - black. black is a default.

The following example generates png file with rectangle and vertical cross superimposed on it

#

# Example 4.

# Demonstrates usage of shape and shapeover

#

slide (Example_04, 200, 300, png)

    bColor = FFAA00AA

shape (10, 10, 180, 50, rectangle)

    lSize = 2

    fColor = FF00FF00

    bColor = FF000000

shapeover (20, 70, 160, 50, cross)

    lSize = 4

    fColor = FF00FF00

The resulting image is like this:

Example_04