This property tells you how many images are held in the graphic.
You can use the count instead of the default enumerator. For
example the following code...
[VBScript]
Set gr = Server.CreateObject("ImageGlue7.Graphic")
gr.SetFile "c:\myimg.jpg"
For Each img In gr
Response.Write "<br>" & img.Width &
"<br>"
Next
is functionally equivalent to ....
[VBScript]
Set gr = Server.CreateObject("ImageGlue7.Graphic")
gr.SetFile "c:\myimg.jpg"
For i = 1 To gr.Count
Response.Write "<br>" & gr(i).Width &
"<br>"
Next
|