Owen Maertens
Owen Maertens

Reputation: 11

Scaling images in a picture box visual studio

I'm working on a program where you can make 8-bit sprites and then use them to make a map. The problem is when I put them in the picture boxes (used as tiles for the map editor) they become blurred due to the scaling. Is there any way to get around this? (I'm using visual studio windows forms and c#)

Upvotes: 1

Views: 1786

Answers (1)

Icepickle
Icepickle

Reputation: 12796

Just make sure you set the SizeMode of your PictureBox properly for your scenario.

As you do not want to scale them, I suggest you put them to Normal or Zoom

Normal with align the picture on the TopLeft position of the PictureBox. Zoom will stretch, but maintain the ratio (thus it wont be overly blurry)

Upvotes: 1

Related Questions