Torna al Thread

System.Web.UI.WebControls.Image imgFoto = new System.Web.UI.WebControls.Image(); System.Drawing.Image.GetThumbnailImageAbort myCallback = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback); Bitmap myBitmap = new Bitmap("foto.jpg"); System.Drawing.Image myThumbnail = myBitmap.GetThumbnailImage(80, 80, myCallback, IntPtr.Zero); imgFoto.ImageUrl = myThumbnail;
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5