1 <%
2 ' This code will show you how to make CONTRAST 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/contrast.jpg" )
12   
13   ' Contrast value which between -100 and 100
14   Dim iContrast
15   iContrast = 50
16   
17   ' Processing contrast effect
18   oGraphic.Contrast iContrast
19   
20 Set oGraphic = Nothing
21 %>
22   
23 <%
24 ' Show the contrastive effect
25 Response.Write "<img src=""images/demo.jpg"" border=""0"">"
26 Response.Write "<img src=""images/tmp/contrast.jpg"" border=""0"">"
27 %>
28