As title really.
Here is the code I created:
Is there a better way of doing it/can you see anything that could be wrong with the code?
Here is the code I created:
Code:
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("imagestr");
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
Image image = Image.FromStream(webResponse.GetResponseStream());
Bitmap bmp = new Bitmap(350, image.Height - 3);
Rectangle rect = new Rectangle(74, 1, 350, image.Height - 3);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(image, 0, 0, rect, GraphicsUnit.Pixel);
bmp.Save("bmp.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
Is there a better way of doing it/can you see anything that could be wrong with the code?