ImageWidth Property
Object:
|
File |
Syntax:
|
objFile.ImageWidth |
Type:
|
Long |
Read/Write:
|
Read Only |
Description:
|
Returns the width of an image. ImageWidth can read the width of GIF, JPEG, BMP,
and PNG format images.
|
Example:
|
<% Set objFileManager = Server.CreateObject("Softartisans.FileManager") Path
= Server.MapPath("image.gif") Set File = objFileManager.GetFile(Path) Response.Write
"<Center><Table border=1 CELLSPACING=2 CELLPADDING=5>" Response.Write
"<TR><TH colspan=2>File name = " & File.Name & "</TH><TR>"
Response.Write "<TR><TD>Image Height</TD><TD>" & File.ImageHeight
& "</TD></TR>" Response.Write "<TR><TD>Image Width</TD><TD>"
& File.ImageWidth & "</TD></TR>" Response.Write "<TR><TD>Image
Color</TD><TD>" & File.ImageColor & "</TD></TR>" Response.Write
"<TR><TD colspan=2><IMG src='" & Path & "'></TD></TR>"
Response.Write "</Table></Center>" %>
|
Copyright © 2010 SoftArtisans, Inc. All rights reserved.