taking images out of sprites
using System.Drawing;
using System.Drawing.Imaging;
Copy this code and paste it in your HTML
Bitmap img
= new Bitmap
(@"C:/imageLocation");
Rectangle cropArea
= new Rectangle
(0,
1100,
150,
105);
Bitmap croppedImage = img.Clone(cropArea, img.PixelFormat);
pictureBox2.Image = croppedImage;
Report this snippet
Comments
Subscribe to comments