web 2.0

ASP/VBScript LoadPicture()

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

ASP/VBScript & LoadPicture()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

One Response to “ASP/VBScript LoadPicture()”

  1. 1misrule…

Leave a Reply

You must be logged in to post a comment.