开发者

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.

VB .NET: PictureBox scales up my images!

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.


  1. Make sure the preview.sizemode is set to normal.
  2. Check the size of the bitmap Result just before you assign it to preview.image and make sure it is really 96x128.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜