home | search | help | login | register

Announcements : added %create-image
added %create-image
admin
Administrator
%create-image(,[|],[])

this command is in beta and suggestions are welcome

* image commands are (so far):

%text(string,options)
%line(x,y,x2,y3,options)
%rect(x,y,x2,y3,options)
%poly(x,y,x2,y3,options)

(todo: circle, arc, etc.)

options are whitespace delimited. certain options only apply to certain commands. most options set at the image level are inherited to drawing commands.

font: - set font
pt - set font size to num points
deg - set angle for rotation
rad - set angle in radians
x - set size or corner to numX/numY
bg: - background color
fg: - foreground color
thick: - line thickness
dashed - dashed line
dotted - dotted line
png - set image output to png
gif - set image output to gif
jpeg - set image output to jpeg
gd2 - set image output to gd2

* input file allows you to draw on an existing image. it can be a filename or binary image data. not tested yet

* output file can be just a filename (format set previously or interpreted from the extension), or :. if you filename has a colon in it, you can use the : output format, just to be safe. (single letters and slashes wont ever be image formats)
posted apr 28 2006 12:35