ASP/VBScript LoadPicture() Returns a picture object. Available only on 32-bit platforms.
ShotDev Focus:
- Using Asp and LoadPicture() function.
Example
asp_loadpicture.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Dim objFso,myImg,FileName FileName = "mygirl.jpg" Set objFso = Server.CreateObject("Scripting.FileSystemObject") IF objFso.FileExists(Server.MapPath(FileName)) Then set myImg = Loadpicture(Server.MapPath(FileName)) Response.write "<br>Width = " & Round(myImg.width / 26.4583) Response.write "<br>Height = " & Round(myImg.height / 26.4583) End If %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_loadpicture.asp
Screenshot
1misrule…
…