PETRONODE

3.4. Text Plotting

The following methods are used to plot text from files on montages.

Statement text. Plots a text box on slide.

text (x, y, dx, dy, Mask, fSize, 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.

    Mask (optional) - mask for the file search (spaces are not allowed). *.* 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) - box background colour in ARGB format, e.g. FFFFFFFF - white. White is a default.

    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


Statement textover. Plots a text on slide, preserving the content under.

textover (x, y, dx, dy, Mask, fSize, 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.

    Mask (optional) - mask for the file search (spaces are not allowed). *.* 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.

    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


The following methods are used to plot labels on montages.

Note that for plotting the labels meta-symbols: &comma, &space, &left and &right must be used, e.g. the following two statements are identical:

label (10, 10, 200, 20, &leftThis&spaceis&spacea&spacetext.&right)

label (10, 10, 200, 20)

    Text=(This is a text.)  


Statement label. Plots a label on slide, with a box.

label (x, y, dx, dy, Text, fSize, 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.

    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) - box background colour in ARGB format, e.g. FFFFFFFF - white. White is a default.  

    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


Statement labelover. Plots a label on slide, preserving the content under.

labelover (x, y, dx, dy, Text, fSize, 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.

    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.  

    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

The following example generates png files with labels PETRONODE superimposed on it

#

# Example 3.

# Demonstrates usage of label and labelover

#

slide (Example_03, 200, 300, png)

    bColor = FFAA00AA

label (10, 10, 180, 50)

    Text =PETRONODE

    fSize = 12

    fColor = FF00FF00

    bColor = FF000000

    fType = Monospace

    fStyle = bold

labelover (20, 70, 160, 50)

    Text =PETRONODE

    fSize = 10

    fColor = FF004400

    fStyle = italic

The resulting image is like this:

Example_03