1 <%
2 ' This code will show you how to ROTATE a 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/rotate.jpg" )
12   
13   
14   ' The angle of rotating CCW
15   Dim angle
16   angle = 45
17   
18   ' Rotating image
19   oGraphic.Rotate angle
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/rotate.jpg"" border=""0"">"
28 %>
29