Draws PostScript from a string spec onto a canvas.

   
Syntax
 
     

[Visual Basic]
Function DrawPS(inPS As String, inParams As String) As XRect

[C#]
 XRect DrawPS(string inPS, string inParams);

 

   
Params
 
     
Name   Description
inPS The string of Postscript to be rendered on the canvas.
inParams A parameter string containing Override parameters, Positioning parameters, Transform parameters and Image Manipulation parameters.
return

The Rect (before transformation) of the area drawn to.

 

   
Notes
 
     

This allows you to draw a string of Postscript onto the Canvas.  The postscript can be any Level 3 postscript as described in the 'Postscript Language Reference Third Edition' from Adobe Systems.

If the size of the canvas has not been previously determined, the Canvas will be sized as an 8.5 x 11 inch page with image width and height determined by the current value of the 'Res' parameter.

 

   
See Also
 
     

Canvas Image property.

 

   
Example
 
     

[VBScruot]
Set ca = CreateObject("ImageGlue7.Canvas")
myps = "/Courier findfont 14 scalefont setfont 1 1 0 setrgbcolor"
myps = myps & " 10 7 moveto (Copyright 1992, my picture productions) show"
ca.DrawFile Server.MapPath("Pictures/desert1.jpg", ""
ca.DrawPS myps, ""
ca.SaveAs Server.MapPath("Pictures/desert1Annotated.png"), ""

The above creates a new png file with the postscript rendered over the top of the picture. The original and annotated pictures are shown below.

sunset.jpg

sunsetAnnotated.png