Allows you to draw text onto the Canvas.



outData = Canvas.GetAs(inType, inParams)


Name   Type   Description
inType String See the Type Image Manipulation parameter for ways of specifying types.
inParams String A parameter string containing Image Export parameters.
outData Array The data held as an array of Bytes.



This works exactly the same way as the SaveAs method but instead of writing the image out to a file the function passes it back as raw data (an array of bytes).

You typically use a sample filename to specify the type of data required.


See Also

Canvas SaveAs method.
Gestalt Save method.



Set ca = Server.CreateObject("ImageGlue7.Canvas")
myshape = "Size=30,30 Operation=both PaintColor=green PenColor=red"
ca.Width = 200
ca.Height = 200
For i = 0 To 4
  For j = 0 To 4
    myrot = " Rotation=" & (i * 50) + (j * 10) & ",15,15"
    mytra = " Translate=" & j * 40 & "," & i * 40
    ca.DrawShape "rect", myshape & myrot & mytra
Response.ContentType = "image/png"
Response.BinaryWrite ca.GetAs("getas.png","")

A sample output file is shown below.