1 <%
2 ' This code will show you how to make BRIGHTNESS 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/brightness.jpg" )
12   
13   
14   ' Brightness value which between -255 and 255
15   Dim iBrightness
16   iBrightness = 128
17   
18   ' Processing brightness effect
19   oGraphic.Brightness iBrightness
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/brightness.jpg"" border=""0"">"
28 %>
29