Bitmap bitmap = new Bitmap(imageToBeResized, imageWidth, imageHeight);//existing image Scaled to the specified size System.IO.MemoryStream stream = new MemoryStream(); what this line do? bitmap.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);what this line do? stream.Position = 0; //create a byte array to store the binary image data byte[] image = new byte[stream.Length+1]; //set the binary data stream.Read(image, 0, image.Length);
bitmap save
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)