| 1 |
<% |
| 2 |
' This code will show you how to make FLIP effect. |
| 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/flip.jpg" ) |
| 12 |
|
| 13 |
|
| 14 |
' Flip horizontal |
| 15 |
oGraphic.FlipH |
| 16 |
|
| 17 |
' Flip vertical |
| 18 |
' oGraphic.FlipV |
| 19 |
|
| 20 |
' Flip by origin |
| 21 |
' oGraphic.FlipO |
| 22 |
|
| 23 |
Set oGraphic = Nothing |
| 24 |
%> |
| 25 |
|
| 26 |
<% |
| 27 |
' Show the contrastive effect |
| 28 |
Response.Write "<img src=""images/demo.jpg"" border=""0"">" |
| 29 |
Response.Write "<img src=""images/tmp/flip.jpg"" border=""0"">" |
| 30 |
%> |
| 31 |
|