ImageColor Property
Object:
|
File |
Syntax:
|
objFile.ImageColor |
Type:
|
Long |
Read/Write:
|
Read Only |
Description:
|
Returns the color count of GIF, JPEG, BMP, and PNG format image files. |
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.