Quantcast
Browsing latest articles
Browse All 5 View Live

Answer by Itachi for C# picturebox load image with an offset

If you just want to show a image for users, you could add the image into a label, then set the alignment property of image as you like.

View Article


Answer by Jeff Ogata for C# picturebox load image with an offset

You can put the PictureBox in a Panel, using the panel as your viewport. Make sure the panel's AutoScroll property is false so you don't get scroll bars appearing. Then, load the image in the...

View Article


Answer by Marco for C# picturebox load image with an offset

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,...

View Article

Answer by CodingGorilla for C# picturebox load image with an offset

It sounds like you're tring to do something like sprites; where you have just one image loaded and then move the "view port" around to show different images. If that's the case, you won't be able to do...

View Article

C# picturebox load image with an offset

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 offsets. I can size the...

View Article

Browsing latest articles
Browse All 5 View Live