Inverts the colors on the canvas.

 

   
Syntax
 
     

[VBScript]
Canvas.Invert

 

   
Params
 
     
Name   Type   Description
none    

 

   
Notes
 
     

Inverts each of the colors in the Canvas. The intensity of each channel is reversed so that whites become blacks, blacks become whites and a light gray will become a dark one.

 

   
See Also
 
     

None.

 

   
Example
 
     

[VBScript]
Set mycanvas = Server.CreateObject("ImageGlue7.Canvas")
mycanvas.DrawFile Server.MapPath("boat.gif"), ""
mycanvas.Invert
mycanvas.SaveAs Server.MapPath("invert.jpg"), ""

Example files are shown below.

boat.gif

invert.jpg