This example shows how to perform a simple sharpen effect on an image held in an ImageGlue Canvas.

 

   
Create a Canvas
 
     
     

To start with you need an ImageGlue Canvas. We'll just create one and put a picture of a boat into it.

thePath = Server.MapPath("images/boat.jpg")
Set theCanv = Server.CreateObject("ImageGlue5.Canvas")
theCanv.DrawFile thePath, ""

   
Apply the Effect
 
     
     

Next we apply the sharpen effect to the image.

Set theFX = Server.CreateObject("ImageEffects.FX")
theFX("Sharpen").Image = theCanv.Image
theFX("Sharpen").Apply

 

   
Save the Image
 
     
     

Finally we save the sharpened image.

thePath = Server.MapPath("images/sharpboat.jpg")
theCanv.SaveAs thePath, ""