VB .NET: PictureBox scales up my images!
In this question I managed to combine two .png images into one, and then display the result in a pictureBox image.
However, the pictureBox seems to scale up my image! Makes it bigger!
The pictureBox size is 96x128. The two images I have combined are 96x128. The pictureBox's SizeMode is set to "Normal"
I have noticed that even though the pictureBox's image开发者_C百科 seems to be zoomed, it is cut to keep the 96x128 rect. But I don't want it to be zoomed...
Thanks.
resourcesPath is simply the main path to my resources folder. And "Bases" is the folder in such path where I am taking the images from.- Make sure the preview.sizemode is set to normal.
- Check the size of the bitmap Result just before you assign it to preview.image and make sure it is really 96x128.
精彩评论