이미지 사이즈 구하기
WEB/ASP 2013. 3. 28. 21:33 |Sub GetImageSize(ByVal f, ByRef x, ByRef y)
Dim p
Set p = LoadPicture(f)
x = CLng(CDbl(p.Width) * 24 / 635)
y = CLng(CDbl(p.Height) * 24 / 635)
Set p = Nothing
End Sub
dim x,y
GetImageSize "c:\inetpub\wwwroot\test\warning.gif", x, y
response.write "x=" & x
response.write "<br>"
response.write "y=" & y
'WEB > ASP' 카테고리의 다른 글
아이피 구하기 (0) | 2013.03.28 |
---|---|
바이너리 파일 읽기 쓰기 (0) | 2013.03.28 |
URLDecode (0) | 2013.03.28 |
Server Variables 다 보기 (0) | 2013.03.28 |
MD5 소스 (0) | 2013.03.28 |