This example shows how to perform a simple sharpen effect on an image held in an ImageGlue 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, ""
Next we apply the sharpen effect to the image.
Set theFX = Server.CreateObject("ImageEffects.FX") theFX("Sharpen").Image = theCanv.Image theFX("Sharpen").Apply
Finally we save the sharpened image.
thePath = Server.MapPath("images/sharpboat.jpg") theCanv.SaveAs thePath, ""