The Item property contains details of an image contained in the
graphic. Some file formats allow multiple images to be stored
within one file. For instance Photoshop files may contain multiple
layers. TIFF files may contain multiple images at different
resolutions. In this case you can reference the second image in
this way.
[VBScript]
Set gr = Server.CreateObject("ImageGlue7.Graphic")
gr.SetFile(Server.MapPath("layers.psd"))
h = gr.Item(2).Height
Response.Write("Height=" & h)
Note that the first item is the default image (e.g. the
composite Photoshop image) and subsequent items are additional
images (e.g. individual Photoshop layers).
|