Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
While taking image from imagelist to picturebox, it is totally getting blurred. What can be done to get image without blur?
Posted
Comments
[no name] 19-Oct-12 5:29am    
What did you try so far?
Any code?
lukeer 19-Oct-12 7:19am    
Use an image that has enough pixels. So the PictureBox doesn't need to interpolate that much.

Ensure the dimensions of each image match the ImageList.ImageSize[^] property of your image list. Also ensure the PictureBox.SizeMode[^] is set to AutoSize.

/ravi
 
Share this answer
 
The common reason for that to happen is if you use an image file that is much smaller in size than the picture box you are assigning it to. The control will stretch the image to fit, but that stretching algorithm will result in severe blurring of the image which gets exponentially worse the greater the difference in size.
The solution is to either find a larger version of the image you are using, one that is as close to the size of the picture box control you want to use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900