Erases the Canvas using the current Canvas color.

 

   
Syntax
 
     

[VBScript]
Canvas.Erase

 

   
Params
 
     
Name   Type   Description
none    

 

   
Notes
 
     

Erases the Canvas, setting it to the current Canvas color.

 

   
See Also
 
     

Canvas Color property.

 

   
Example
 
     

[VBScript]
Set mycanvas = Server.CreateObject("ImageGlue7.Canvas")
mycanvas.Color = "red"
mycanvas.Width = 50
mycanvas.Height = 50
mycanvas.Color = "blue"
mycanvas.Width = 100
mycanvas.Height = 100
mycanvas.SaveAs Server.MapPath("erase1.gif"), ""
mycanvas.Erase
mycanvas.SaveAs Server.MapPath("erase2.gif"), ""

Sample files are shown below.

erase1.gif

erase2.gif