Torna al Thread

public static void CropImageStreaming(Stream imgStr, int Width, int Height, string filename) { //creo il bitmap dallo stream System.Drawing.Image bmpStream = System.Drawing.Image.FromStream(imgStr); System.Drawing.Image imgPhoto = CropStreaming(bmpStream, Width, Height, AnchorPosition.Center); try { imgPhoto.Save(filename, ImageFormat.Jpeg); //ERRORE GDI+ imgPhoto.Dispose(); } catch {} }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5