Thought I would knock up a demo application just to show you how this plugin works and how easy it is to use.
Possibly the Worlds Simplest Drawing Package!
A compiled version along with the source and project files should be attached to this post. Here is the source which should be run in a 640x480 window (unless you fiddle with it):
sync on: sync rate 60
cls rgb(255,255,255): sync
` lastx and lasty are used to store the last position of the
` mouse so a line can be drawn to its new position.
lastx=mousex(): lasty=mousey()
do
` Left mouse button draws in red
if mouseclick()=1 then ink rgb(255,50,50),rgb(255,255,255)
` Right mouse button draws in random colour
if mouseclick()=2 then ink rgb(rnd(255),rnd(255),rnd(255)),rgb(255,255,255)
if mouseclick()>0 then line lastx, lasty, mousex(), mousey()
lastx=mousex(): lasty=mousey()
key=scancode()
` Scancode 25 is the P key
if key=25
get image 1,0,0,640,480,1
save image "screenshot.bmp",1
delete image 1
` Call up the Print Dialog box and only print if they click 'Okay'
if Zappo PrintDialog()
if not Zappo Printout("screenshot.bmp",0,1) then print "ERROR Printing Image"
endif
endif
sync
loop
The left mouse button draws with a red pen, the right mouse button draws with a multicoloured pen. Press the 'p' key to print. You will see the dialog box first and can click cancel if you decide you don't want to print. Clicking 'okay' will send the picture to the printer. Simple, eh? A drawing and printing program in 20 lines.