Primitive
|
Arguments
|
Purpose
|
affine |
sx,rx,ry,sy,tx,ty |
Apply coordinate transformations to support scaling (s), rotation (r),
and translation (t). Angles are specified in radians. Equivalent to SVG
matrix command which supplies a transformation matrix. |
angle |
angle |
Specify object drawing angle. |
arc |
startX,startY endX,endY startDegrees,endDegrees |
Draw an arc. |
bezier |
x1,y1, x2,y2, x3,y3, ..., xN,yN |
Draw a bezier curve. |
circle |
originX,originY perimX,perimY |
Draw a circle. |
color |
x,y (point|replace|floodfill|filltoborder|reset) |
Set color in image according to specified colorization rule. |
decorate |
(none|underline|overline|line-through) |
Specify text decoration. |
ellipse |
originX,originY width,height arcStart,arcEnd |
Draw an ellipse. |
fill |
colorspec |
Specifiy object filling color. |
fill-opacity |
opacity |
Specify object fill opacity. |
font |
fontname |
Specify text drawing font. |
gravity |
(NorthWest|North|NorthEast|West|Center|East|SouthWest|South|SouthEast) |
Specify text positioning gravity. |
image |
x,y width,height filename |
Composite image at position, scaled to specified width and height,
and specified filename. If width or height is zero, scaling is not performed. |
line |
startX,startY endX,endY |
Draw a line. |
matte |
x,y (point|replace|floodfill|filltoborder|reset) |
Set matte in image according to specified colorization rule. |
opacity |
fillOpacity strokeOpacity |
Specify drawing fill and stroke opacities. |
path |
'SVG-compatible path arguments' |
Draw using SVG-compatible path drawing commands. |
point |
x,y |
Set point to fill color. |
pointsize |
pointsize |
Specify text drawing pointsize (scaled to density). |
polygon |
x1,y1, x2,y2, x3,y3, ..., xN,yN |
Draw a polygon. |
polyline |
x1,y1, x2,y2, x3,y3, ..., xN,yN |
Draw a polyline. |
pop |
graphic-context |
Remove options set since previous "push graphic-context" command. Options
revert to those in effect prior to pushing the graphic context. |
push |
graphic-context |
Specify new graphic context. |
rect |
upperLeftX,upperLeftY lowerRightX,lowerRightY |
Draw a rectangle. |
rotate |
angle |
Specify coordiante space rotation. Subsequent objects are drawn with
coordate space rotated by specified angle. |
roundrectangle |
centerX,centerY width,hight cornerWidth,cornerHeight |
Draw a rectangle with rounded corners. |
stroke |
colorspec |
Specify object stroke (outline) color. |
stroke-antialias |
stroke_antialias (0 or 1) |
Specify if stroke should be antialiased or not. |
stroke-dash |
value |
Specify pattern to be used when drawing stroke. |
stroke-opacity |
opacity |
Specify opacity of stroke drawing color. |
stroke-width |
linewidth |
Specify stroke (outline) width in pixels. |
text |
x,y "some text" |
Draw text at position. |
text-antialias |
text_antialias (0 or 1) |
Specify if rendered text is to be antialiased (blend edges). |
scale |
x,y |
Specify scaling to be applied to coordintate space for subsequent drawing
commands. |
translate |
x,y |
Specify center of coordinate space to use for subsequent drawing commands. |