• λ我爱Aspx >> C#.Net >> 利用FSO取得BMP,JPG,PNG,GIF文件信息
  • 利用FSO取得BMP,JPG,PNG,GIF文件信息

  • :aspxer  Դ:internet  :2007-5-12 7:50:55  ؼ:
  • 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

    Ҷƪл˵?
  • һƪ超长字符的智能分页-支持HTML
    һƪVBS、ASP代码语法加亮显示的类(2)