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.


Statement unconformity. Plots an unconformity line on slide, with a caption.

    label (x, y, dx, dy, Text, fSize, fColor, bColor, topColor, bottomColor)

        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.

        Text (optional) - label text. *.* is a default.

        fSize (optional) - font size. Default is 60.

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

        bColor (optional) - not used at this time (automatically topColor or BottomColor are used).  

        fType (optional) - font print type (as per the font names in your system). SystemSansSerif is default.

        fStyle (optional) - font style. Use one of the following:

            bold

            italic

            strikeout

            underline

        lSize (optional) - borderline size. 1 is default.

        captionX (optional) - location of caption point. -1 is default (do not draw).

        captionY (optional) - location of caption point. -1 is default (do not draw).

        topColor (optional) - color above the unconformity line. white is a default.

        bottomColor (optional) - color below the unconformity line. white 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