婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 用FSO獲得圖片文件的信息(大小,寬,高)

用FSO獲得圖片文件的信息(大小,寬,高)

熱門標簽:鳳臺百度地圖標注店 怎么在地圖標注自己 金昌電話機器人價格 修改地圖標注 外呼系統API接口 個人可以辦理400電話么 萊西電子地圖標注 武夷山旅游地圖標注 縣域地圖標注打印店
%
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
''::: BMP, GIF, JPG and PNG :::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
''::: :::
''::: This function gets a specified number of bytes from any :::
''::: file, starting at the offset (base 1) :::
''::: :::
''::: Passed: :::
''::: flnm => Filespec of file to read :::
''::: offset => Offset at which to start reading :::
''::: bytes => How many bytes to read :::
''::: :::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function GetBytes(flnm, offset, bytes)
Dim objFSO
Dim objFTemp
Dim objTextStream
Dim lngSize
on error resume next
Set objFSO = CreateObject("Scripting.FileSystemObject")

'' First, we get the filesize
Set objFTemp = objFSO.GetFile(flnm)
lngSize = objFTemp.Size
set objFTemp = nothing
fsoForReading = 1
Set objTextStream = objFSO.OpenTextFile(flnm, fsoForReading)
if offset > 0 then
strBuff = objTextStream.Read(offset - 1)
end if
if bytes = -1 then '' Get All!
GetBytes = objTextStream.Read(lngSize) ''ReadAll
else
GetBytes = objTextStream.Read(bytes)
end if
objTextStream.Close
set objTextStream = nothing
set objFSO = nothing
end function
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
''::: :::
''::: Functions to convert two bytes to a numeric value (long) :::
''::: (both little-endian and big-endian) :::
''::: :::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function lngConvert(strTemp)
lngConvert = clng(asc(left(strTemp, 1)) + ((asc(right(strTemp, 1)) * 256)))
end function
function lngConvert2(strTemp)
lngConvert2 = clng(asc(right(strTemp, 1)) + ((asc(left(strTemp, 1)) * 256)))
end function

'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
''::: :::
''::: This function does most of the real work. It will attempt :::
''::: to read any file, regardless of the extension, and will :::
''::: identify if it is a graphical image. :::
''::: :::
''::: Passed: :::
''::: flnm => Filespec of file to read :::
''::: width => width of image :::
''::: height => height of image :::
''::: depth => color depth (in number of colors) :::
''::: strImageType=> type of image (e.g. GIF, BMP, etc.) :::
''::: :::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function gfxSpex(flnm, width, height, depth, strImageType)
dim strPNG
dim strGIF
dim strBMP
dim strType
strType = ""
strImageType = "(unknown)"
gfxSpex = False
strPNG = chr(137) chr(80) chr(78)
strGIF = "GIF"
strBMP = chr(66) chr(77)
strType = GetBytes(flnm, 0, 3)
if strType = strGIF then '' is GIF
strImageType = "GIF"
Width = lngConvert(GetBytes(flnm, 7, 2))
Height = lngConvert(GetBytes(flnm, 9, 2))
Depth = 2 ^ ((asc(GetBytes(flnm, 11, 1)) and 7) + 1)
gfxSpex = True
elseif left(strType, 2) = strBMP then '' is BMP
strImageType = "BMP"
Width = lngConvert(GetBytes(flnm, 19, 2))
Height = lngConvert(GetBytes(flnm, 23, 2))
Depth = 2 ^ (asc(GetBytes(flnm, 29, 1)))
gfxSpex = True
elseif strType = strPNG then '' Is PNG
strImageType = "PNG"
Width = lngConvert2(GetBytes(flnm, 19, 2))
Height = lngConvert2(GetBytes(flnm, 23, 2))
Depth = getBytes(flnm, 25, 2)
select case asc(right(Depth,1))
case 0
Depth = 2 ^ (asc(left(Depth, 1)))
gfxSpex = True
case 2
Depth = 2 ^ (asc(left(Depth, 1)) * 3)
gfxSpex = True
case 3
Depth = 2 ^ (asc(left(Depth, 1))) ''8
gfxSpex = True
case 4
Depth = 2 ^ (asc(left(Depth, 1)) * 2)
gfxSpex = True
case 6
Depth = 2 ^ (asc(left(Depth, 1)) * 4)
gfxSpex = True
case else
Depth = -1
end select

else
strBuff = GetBytes(flnm, 0, -1) '' Get all bytes from file
lngSize = len(strBuff)
flgFound = 0
strTarget = chr(255) chr(216) chr(255)
flgFound = instr(strBuff, strTarget)
if flgFound = 0 then
exit function
end if
strImageType = "JPG"
lngPos = flgFound + 2
ExitLoop = false
do while ExitLoop = False and lngPos lngSize

do while asc(mid(strBuff, lngPos, 1)) = 255 and lngPos lngSize
lngPos = lngPos + 1
loop
if asc(mid(strBuff, lngPos, 1)) 192 or asc(mid(strBuff, lngPos, 1)) > 195 then
lngMarkerSize = lngConvert2(mid(strBuff, lngPos + 1, 2))
lngPos = lngPos + lngMarkerSize + 1
else
ExitLoop = True
end if
loop
''
if ExitLoop = False then
Width = -1
Height = -1
Depth = -1
else
Height = lngConvert2(mid(strBuff, lngPos + 4, 2))
Width = lngConvert2(mid(strBuff, lngPos + 6, 2))
Depth = 2 ^ (asc(mid(strBuff, lngPos + 8, 1)) * 8)
gfxSpex = True
end if

end if
end function

'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
''::: Test Harness :::
'':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

'' To test, we''ll just try to show all files with a .GIF extension in the root of C:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objF = objFSO.GetFolder("c:\&;)
Set objFC = objF.Files
response.write "table border=""0"" cellpadding=""5"">"
For Each f1 in objFC
if instr(ucase(f1.Name), ".GIF") then
response.write "tr>td>" f1.name "/td>td>" f1.DateCreated "/td>td>" f1.Size "/td>td>"
if gfxSpex(f1.Path, w, h, c, strType) = true then
response.write w " x " h " " c " colors"
else
response.write " "
end if
response.write "/td>/tr>"
end if
Next
response.write "/table>"
set objFC = nothing
set objF = nothing
set objFSO = nothing

%>

標簽:南京 通遼 楚雄 上海 赤峰 清遠 涼山 邢臺

巨人網絡通訊聲明:本文標題《用FSO獲得圖片文件的信息(大小,寬,高)》,本文關鍵詞  用,FSO,獲得,圖片,文件,的,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《用FSO獲得圖片文件的信息(大小,寬,高)》相關的同類信息!
  • 本頁收集關于用FSO獲得圖片文件的信息(大小,寬,高)的相關信息資訊供網民參考!
  • 推薦文章
    婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av
    国产99久久久国产精品潘金| 91精彩视频在线| 一区二区三区自拍| 国产精品久久久久久久久晋中| 2020日本不卡一区二区视频| eeuss鲁片一区二区三区| 91网站在线播放| 色999日韩国产欧美一区二区| 成人黄色777网| 国产精品一区二区不卡| 国产激情一区二区三区四区| 欧美日韩国产在线观看| 在线免费视频一区二区| 欧洲国内综合视频| 欧美高清视频不卡网| 欧美一激情一区二区三区| 日韩女同互慰一区二区| 久久久久久久久久久久久女国产乱 | 三级久久三级久久久| 午夜av一区二区三区| 理论片日本一区| 成人黄色av电影| 欧美性淫爽ww久久久久无| 亚洲精品你懂的| 日韩一区二区三区精品视频| 欧美这里有精品| av不卡一区二区三区| 国产伦精品一区二区三区免费| 午夜伊人狠狠久久| 一区二区欧美在线观看| 国产精品久久久久影院色老大 | 亚洲国产成人私人影院tom| 国产精品亚洲人在线观看| 麻豆国产精品官网| 91丨porny丨国产| 欧美成人激情免费网| 久久青草欧美一区二区三区| 一区二区中文字幕在线| 污片在线观看一区二区| 国产精品一区二区无线| 欧美xxx久久| 亚洲成人久久影院| 色一区在线观看| 亚洲欧美激情在线| 国产综合一区二区| 精品久久久久99| 蜜桃久久av一区| 欧美三级蜜桃2在线观看| 国产丝袜美腿一区二区三区| 国内精品嫩模私拍在线| 国产成人免费网站| 精品久久99ma| 激情国产一区二区| 欧美成人精品福利| 韩国在线一区二区| 久久久久久久久伊人| 精品一区二区国语对白| 久久综合国产精品| 国产福利视频一区二区三区| 久久久九九九九| 国产精品一区在线观看乱码| 日韩欧美三级在线| 九九九精品视频| 精品国产不卡一区二区三区| 精品写真视频在线观看| 亚洲精品一区二区三区在线观看| 国产一二精品视频| 中文文精品字幕一区二区| 懂色中文一区二区在线播放| 国产精品久久久久7777按摩| 成人黄色网址在线观看| 欧美激情综合五月色丁香小说| 国产精品白丝jk白祙喷水网站| 精品对白一区国产伦| 国产经典欧美精品| 最新国产成人在线观看| 日本一区二区三区在线观看| 国产福利一区二区| 一区二区三区在线免费播放| 欧美日韩aaaaa| 国产一区二区三区日韩| 久久久久久久电影| 成人av电影免费观看| 亚洲精品视频一区| 欧美一区在线视频| 成人永久aaa| 亚洲高清中文字幕| 精品剧情v国产在线观看在线| av成人动漫在线观看| 日韩国产高清影视| 国产欧美精品国产国产专区| 一本久道久久综合中文字幕| 久久国产麻豆精品| 亚洲精品国产a久久久久久 | 丝袜亚洲另类欧美综合| 精品久久久久久综合日本欧美| 成人国产精品免费观看| 午夜精品久久久久久久蜜桃app| 久久精子c满五个校花| 国产日本欧美一区二区| 亚洲精品国产品国语在线app| 午夜久久久影院| 中文字幕av在线一区二区三区| 精品成人一区二区三区| 美国十次综合导航| 欧美视频中文一区二区三区在线观看| 色哟哟国产精品| 91麻豆免费看| 欧美三级乱人伦电影| 欧美在线免费观看视频| 日韩一区二区三区精品视频| 国产亚洲成年网址在线观看| 日韩美女视频在线| 国产成人亚洲精品狼色在线| 精品国产髙清在线看国产毛片| 日本91福利区| 欧美日韩在线综合| 亚洲国产cao| 精品国产乱码久久久久久1区2区| 成人精品一区二区三区中文字幕| 一区二区三区四区高清精品免费观看| 中文字幕中文字幕一区| 亚洲女人的天堂| 蜜臀久久99精品久久久久宅男| 亚洲v日本v欧美v久久精品| 国产一区二区三区久久久| 色综合天天综合给合国产| 久久精品男人的天堂| 最近中文字幕一区二区三区| 精品一区二区三区香蕉蜜桃 | 国产成人小视频| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 欧美精品在线视频| 精品国产在天天线2019| 亚洲免费资源在线播放| 激情成人午夜视频| 久久精品综合网| 国产精品影视在线| 亚洲一区二区精品视频| 欧美性受xxxx黑人xyx| 午夜伊人狠狠久久| 在线播放亚洲一区| 99久久er热在这里只有精品66| 国产精品卡一卡二卡三| 东方欧美亚洲色图在线| 日本高清成人免费播放| 韩国精品免费视频| 国模套图日韩精品一区二区| 免费亚洲电影在线| 激情六月婷婷久久| 国产成人综合亚洲91猫咪| 久久精品国产亚洲aⅴ| 日本三级亚洲精品| 国产一区三区三区| 国产激情91久久精品导航| 国产传媒欧美日韩成人| 丰满亚洲少妇av| 成人精品一区二区三区四区| 成人av电影在线| 91伊人久久大香线蕉| 91精品1区2区| 5566中文字幕一区二区电影| 精品少妇一区二区三区日产乱码| 欧美精品一区二区三区一线天视频 | 欧美精品一区二区久久久| 日韩一区二区精品| 久久久久久久精| 精品国产乱码久久| 亚洲精品一卡二卡| 免费成人av在线播放| 国产成a人无v码亚洲福利| 色国产精品一区在线观看| 欧美日韩高清一区二区不卡 | 亚洲一区精品在线| 日韩精品高清不卡| 国产一区 二区 三区一级| 欧美主播一区二区三区美女| 制服丝袜国产精品| 亚洲国产精品av| 亚洲国产综合色| 精品一区二区三区不卡| jlzzjlzz欧美大全| 亚洲乱码国产乱码精品精98午夜| 日日骚欧美日韩| www.欧美日韩| 欧美日韩在线一区二区| 日韩精品一区二区三区在线| 亚洲男人的天堂av| 日韩影视精彩在线| 99久久婷婷国产| 欧美一区二区三区免费观看视频 | 捆绑调教美女网站视频一区| 91亚洲国产成人精品一区二区三 | 国产精品综合视频| 日本福利一区二区| 国产精品久久久久一区 | 久久亚洲精精品中文字幕早川悠里| 亚洲女同女同女同女同女同69| 国产一区视频网站| 欧美一区二区观看视频|