I have a resource file (in .png format) which contain several images. They are sized and spaced in a way to where they should be relatively easy to call based on their offse
Assuming your PNG image is imgwidth pixel wide and composed by n horizontal images, you could try this:
Image imgsrc = Image.FromFile("...."); // your PNG file
Image imgdst = new Bitmap(imgwidth/n, imgsrc.Height);
using (Graphics gr = Graphics.FromImage(imgdst))
{
gr.DrawImage(imgsrc,
new RectangleF(0, 0, imgdst.Width, imgdst.Height),
new RectangleF(imgindex * imgwidth/n, 0, imgwidth/n, imgsrc.Height),
GraphicsUnit.Pixel);
}
The idea is to create a new image (imgdst) and draw on it the part of original image you need.
With new image you can do what you please, even draw it in a picturebox.