| 1 |
<% |
| 2 |
' This code will show you how to make SHARPEN effect on the image. |
| 3 |
|
| 4 |
Dim oGraphic |
| 5 |
Set oGraphic = Server.CreateObject("PhotoSprite.Graphic") |
| 6 |
|
| 7 |
' Original image name |
| 8 |
oGraphic.SourceFile = Server.MapPath( "images/demo.jpg" ) |
| 9 |
|
| 10 |
' Destination image name, and can make the same as the original image name |
| 11 |
oGraphic.DestFile = Server.MapPath( "images/tmp/sharpen.jpg" ) |
| 12 |
|
| 13 |
|
| 14 |
' Sharpen degree which between 1 and 100 |
| 15 |
Dim iDegree |
| 16 |
iDegree = 10 |
| 17 |
|
| 18 |
' Processing sharpen effect |
| 19 |
oGraphic.Sharpen iDegree |
| 20 |
|
| 21 |
Set oGraphic = Nothing |
| 22 |
%> |
| 23 |
|
| 24 |
<% |
| 25 |
' Show the contrastive effect |
| 26 |
Response.Write "<img src=""images/demo.jpg"" border=""0"">" |
| 27 |
Response.Write "<img src=""images/tmp/sharpen.jpg"" border=""0"">" |
| 28 |
%> |
| 29 |
|