1 <%
2 ' This code will show you how to draw WATER ROTATE TEXT 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/rotatetext.jpg" )
12   
13   
14   oGraphic.FontFamily = "Arial"
15   oGraphic.FontSize   = 24
16   oGraphic.FontColor  = "#FF0000"
17   
18   ' Font weight:
19   '   Bold, Italic, Strikeout, Underline, Regular
20   oGraphic.FontWeight = "Bold"
21   
22   ' The transparency of the font color, which between 0 and 255
23   oGraphic.ColorAlpha = 128
24   
25   ' the X and Y coordinates of the arc center
26   oGraphic.X = 250
27   oGraphic.Y = 230
28   
29   ' The arc radius
30   oGraphic.Radius = 140
31   
32   
33   ' The text on the image
34   Dim Text
35   Text = "WWW.PHOTOSPRITE.NET"
36   
37   ' The start angle
38   Dim angleStart
39   angleStart = 180
40   
41   ' The span angle which start from the start angle and 
42   ' rotate CW to the end position.
43   Dim angleSpan
44   angleSpan = 180
45   
46   ' Character direction
47   '   0 - Along tangent
48   '   1 - Centripetal
49   '   2 - Against tangent
50   '   3 - Centrifugal
51   Dim direction
52   direction = 1
53   
54   ' Drawing the water rotate text
55   oGraphic.RotateText Text, angleStart, angleSpan, direction
56   
57 Set oGraphic = Nothing
58 %>
59   
60 <%
61 ' Show the contrastive effect
62 Response.Write "<img src=""images/demo.jpg"" border=""0"">"
63 Response.Write "<img src=""images/tmp/rotatetext.jpg"" border=""0"">"
64 %>
65