简体   繁体   English

Vb.Net PictureBox 在运行时调整图像大小

[英]Vb.Net PictureBox Resize image in runtime

appreciate your help.感谢你的帮助。

So I have an image (293 X 117 px) being placed in a PictureBox inside a Form.所以我有一个图像(293 X 117 px)被放置在表单内的图片框中。 The layouts of control is perfect in the From; From中的控件布局非常完美; however, when I run the application the form is displayed but it seems the image is resized!!但是,当我运行应用程序时,会显示表单,但似乎图像已调整大小! I have the the SizeMode set to Normal我将SizeMode设置为Normal

This worked这有效

Disabling DPI-awareness to fix HDPI / scaling issues with Windows Forms Designer in Visual Studio:禁用 DPI 感知以修复 Visual Studio 中 Windows 窗体设计器的 HDPI/缩放问题:

https://docs.microsoft.com/en-us/visualstudio/designers/disable-dpi-awareness?view=vs-2022 https://docs.microsoft.com/en-us/visualstudio/designers/disable-dpi-awareness?view=vs-2022

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM