add a job to work queue
static
true
queue
(string $a, array $b)
-
string
$a: job name and image identifier, separated by :
-
array
$b: job arguments
paint an unfilled arc
true
arc
(integer $id, integer $x1, integer $y1, integer $w, integer $h, integer $start, integer $end, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$x1: x coordinate
-
integer
$y1: y coordinate
-
integer
$w: width in pixels
-
integer
$h: height in pixels
-
integer
$start: start angle
-
integer
$end: end angle
-
string
$color: name of color
set background color
true
background
(integer $id, string $color)
-
integer
$id: image id from XFImage::create()
-
string
$color: name of color
paint a border with one pixel at the edge
true
border
(integer $id, string $color)
-
integer
$id: image id from XFImage::create()
-
string
$color: name of color
set a color. channels can be in hexadecimal '0x00-0xff' or integer '0-255'
true
color
(integer $id, integer $chr, $chg, integer $chb, double $cha, string $name)
-
integer
$id: image id from XFImage::create()
-
integer
$chr: green channel
-
integer
$chb: blue channel
-
double
$cha: alpha channel
-
string
$name: name of color for referencing
-
$chg
create an image. returns the id for all later operations.
integer
create
(integer $size_x, integer $size_y, [string $option = ''])
-
integer
$size_x: width in pixels
-
integer
$size_y: height in pixels
-
string
$option: enable smoother lines with 'antialias=yes'
enable the image processor
boolean
enabled
()
paint a filled arc
true
filledarc
(integer $id, integer $x1, integer $y1, integer $w, integer $h, integer $start, integer $end, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$x1: x coordinate
-
integer
$y1: y coordinate
-
integer
$w: width in pixels
-
integer
$h: height in pixels
-
integer
$start: start angle
-
integer
$end: end angle
-
string
$color: name of color
paint a filled rectangle
true
filledrectangle
(integer $id, integer $x1, integer $y1, integer $x2, integer $y2, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$x1: left-top x coordinate
-
integer
$y1: left-top y coordinate
-
integer
$x2: right-bottom x coordinate
-
integer
$y2: right-bottom y coordinate
-
string
$color: name of color
paint a line
true
line
(integer $id, integer $x1, integer $y1, integer $x2, integer $y2, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$x1: left-top x coordinate
-
integer
$y1: left-top y coordinate
-
integer
$x2: right-bottom x coordinate
-
integer
$y2: right-bottom y coordiate
-
string
$color: name of color
output the rendered image
resource
output
(integer $id, string $format)
-
integer
$id: image id from XFCreate::image()
-
string
$format: use 'png' or 'svg'
paint an unfilled rectangle
true
rectangle
(integer $id, integer $x1, integer $y1, integer $x2, integer $y2, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$x1: left-top x coordinate
-
integer
$y1: left-top y coordinate
-
integer
$x2: right-bottom x coordinate
-
integer
$y2: right-bottom y coordinate
-
string
$color: name of color
execute jobs from work queue and render the image
true
render
(string $mode)
-
string
$mode: render 'bitmap' image or 'vector' type, 'purge' cleans queue
remove a filter from using
true
reset_filter
()
paint a string
true
string
(integer $id, integer $size, integer $x1, integer $y1, string $msg, string $color)
-
integer
$id: image id from XFImage::create()
-
integer
$size: letter size (1-5)
-
integer
$x1: x coordinate
-
integer
$y1: y coordinate
-
string
$msg: text message
-
string
$color: name of color
frame for svg files
string
svg_skeleton
()
apply a filter for next operations
true
use_filter
(integer $filter, [string $data = ''])
-
integer
$filter: filter id
-
string
$data: options