Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2009, 07:11
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Respuesta: tratamiento de imagenes

Hola

Estás dos funciones te puede ayudar

Código asp:
Ver original
  1. Private Function GetImageWidth(byVal strPath)
  2.    dim myImg, fs
  3.    Set fs= CreateObject("Scripting.FileSystemObject")
  4.    if not fs.fileExists(strPath) then Exit Function
  5.    set myImg = loadpicture(strPath)
  6.    GetImageWidth = round(myImg.width / 26.4583)
  7.    set myImg = nothing
  8. End Function
  9.  
  10.  
  11. Private Function GetImageHeight(byVal strPath)
  12.    dim myImg, fs
  13.    Set fs= CreateObject("Scripting.FileSystemObject")
  14.    if not fs.fileExists(strPath) then Exit Function
  15.    set myImg = loadpicture(strPath)
  16.    GetImageHeight = round(myImg.height / 26.4583)
  17.    set myImg = nothing
  18. End Function

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />