Image from imageList to Picturebox comes out blurred (c #)

0

I'm trying to insert an image from an ImageList to a PictureBox, but when I load the image, it goes very blurry, the code is this: P3.BackgroundImage = imageList1.Images [0];

It should come out clear.

    
asked by Johan Rodríguez 22.09.2018 в 06:34
source

1 answer

1

Welcome to the brother community, I regret to inform you that ImageList is designed for small images, like icons for example.

So it is not functional for large images; the default size of ImageList is 16x16 pixels and has a maximum of 256x256 so if you insert a larger image loses quality and transforms it to 256x256 (proportional)

I hope this answer has served you; I can also recommend you use a List<> to create your lists from the code.

For example you could have a List<String> where you store the path of the images.

By the way, if my answer helps you, you can vote for it;)

    
answered by 22.09.2018 / 09:46
source