Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/10/2006, 15:42
axpicasso
 
Fecha de Ingreso: octubre-2006
Mensajes: 53
Antigüedad: 18 años, 5 meses
Puntos: 1
Como Cienciano De Peru : Si Se Puede

uan vez en el servidor se puede hacer todo y no hay problema para hacerlo.


System.Drawing.Bitmap bmp1 = new System.Drawing.Bitmap("C:\\sap.jpg"); // ó @"C:\sap.jpg"
System.IO.FileInfo imgInfo1 = new System.IO.FileInfo("C:\\sap.jpg"); // ó @"C:\sap.jpg"

int alto = bmp1.Height;
int ancho = bmp1.Width;
double tamanio = Convert.ToInt32(imgInfo1.Length);
double tamanioKB = Math.Round((tamanio / 1024), 2);

Response.Write("Alto " + alto.ToString() + "<br>");
Response.Write("Ancho " + ancho.ToString() + "<br>");
Response.Write("Peso " + tamanio.ToString() + "<br>");
Response.Write("Peso KB " + tamanioKB.ToString() + "<br>");

imgInfo1 = null;
bmp1 = null;


cualquier duda o ayuda ( jejejeje )
[email protected]