Operations of the graphic processor

Operations with images are enclosed in {} first operation starts with #

Load (parameter)
Loads imageto Graphic Processor for further processing.

parameter

  1. Int picture index on the page
  2. String relative path to an image

Example:

  1. Load(0)
  2. Load('images/header.jpg')
LoadThumbnail (parameter, width, height)
Loads image to Graphic Processor as Thumbnails. Compared to Load this operation requires less time in case of JPG file. Image adjusts for width and height sizes.

parameter

  1. Int picture index on the page
  2. String relative path to an image

Width Int size in pixels
Height Int size in pixels

Example:

  1. LoadThumbnail(0)
  2. LoadThumbnail('images/header.jpg')

Out (parameter)
records the result image to disk.

parameter

String Relative path to display image. Supports the template of the output file name.

Example:
{#Out(LoadThumbnail(2,111,170),'/Thumbnails/over*.jpg');}

Resize(width, height)
adjusts the scale (changes size) of the preloaded image.

width Int size in pixels height Int size in pixels

Example:
{#Out(Resize(Load(3),111,170)),'/Thumbnails/over_*.jpg');}

TextOut1(Text, FontName, Hfont, Flags,X,Y,Color)
Displays the text to the preloaded image.

parameter

  1. Text String Text to enter.
  2. FontName String Font name
  3. Hfont Int Font height
  4. Flags Int Flags of font parameters and text location
    Combination of flags is their sum.
    TYPE_BOLD 16
    TYPE_ITALIC 32
    TYPE_STRIKEOUT 64
    TYPE_UNDERLINE 128
    Aligment ---
    0 1 2
    3 4 5
    6 7 8

Example:
Bold Italic align center 16+32+4 =52
X,Y
Int Coordinates of text displaying in pixels according to Alignment.
Color
COLOR Font color
COLOR - hexadecimal number in single quotation marks
'0xAABBCCEE'
AA - transparency level
BB - blue component
CC - green component
EE - red component

Example:
{#Out(TextOut1(Load('images/header.jpg'),'#TITLE#','Arial', 60,4, 400,113,'0x00CCFFFF' ),'images/headFuck.jpg');}

Gray()
Converts image to black and white.

Without parameters

Colorize (DarkColor, MidleColor,LightColor)
converts image to three-color. Gray() is the particular case of three-color. Colorize. Where dark and light colors are black and white colors correspondingly, and MidleColor is the gradation of gray.

parameter

DarkColor, COLOR
MidleColor COLOR
LightColor COLOR

Example:
{#Out(Colorize(LoadThumbnail(1,111,170),0,'0x0000FFFF','0x00FFFFFF'),'/Thumbnails/over_*.jpg');}

Rotate (Angle)
Rotation of image to the given angle in degrees.

parameter

Angle Int Angle of image rotation in degrees. Rotation Counter Clock Wise.

Example:
{#Out(Rotate(LoadThumbnail(1,111,170),180),'/Thumbnails/over_*.jpg');}

Rotate90()
Rotate180()
Rotate270()

Operations without parameters. Particular cases of rotate.