[VBScript]
Set myrect = Server.CreateObject("ImageGlue7.XRect")
myrect.String = "10,10,200,100"
Response.Write("Top = " & myrect.Top & "<br>")
Response.Write("Right = " & myrect.Right &
"<br>")
Response.Write("Bottom = " & myrect.Bottom &
"<br>")
Response.Write("Left = " & myrect.Left & "<br>")
Response.Write("TopLeft = " & myrect.TopLeft &
"<br>")
Response.Write("BottomRight = " & myrect.BottomRight &
"<br>")
Response.Write("Width = " & myrect.Width &
"<br>")
Response.Write("Height = " & myrect.Height &
"<br>")
This produces the following output.
Top = 10
Right = 200
Bottom = 100
Left = 10
TopLeft = 10,10
BottomRight = 200,100
Width = 190
Height = 90
|