Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chunky Images in C#

Status
Not open for further replies.

JurkMonkey

Programmer
Nov 23, 2004
1,731
CA
Hi Everyone,

I am loading .png files with transparency into an ImageList. When I display the images in a pictureBox, they look Chunky (Pixelated)

Any ideas how to smooth these images out?

Thanks
-D
 
Is there a chance that the image is made larger in the PictureBox than its actual size? For example, if you display a 16 x 16 pixel icon and force it to be 32 x 32 pixels in your PictureBox, it will look chunky.

You may need to reduce the size of the image in the PictureBox or locate a higher quality image.

Something you may also want to do is open your image using Windows, make it the same size as it is displayed in the PictureBox, and compare the two. It might not be the PictureBox that is making the image look chunky.
 
Thanks for your feedback.

I found the problem to be with .png images and transparency. I converted the images to .gif instead and they look much smoother.

The other thing I noticed is that loading images into an ImageList causes the images to become poor quality. If you load the images directly into an image and then use the image in your control it works much better. - However, this does not work in the case of a ToolBar because the toolbar requires an imagelist.

Thanks Again!
-D

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top