Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想从图像创建可调整大小的表单,我必须使用矢量图像吗?
一个例子是 Photoshop。它可以调整大小并保持圆角和外边缘,而不会使其看起来变形和拉伸。
我知道可以在背景中平铺简单的图案,但尝试拥有完美的圆角是一项艰巨的任务。这将如何完成?
You can override the OnPaint method for your form and draw the background yourself in the right size. Since you're drawing primitives (paths, rectangles, ellipses, etc.) it's not a source bitmap that gets scaled and you can adapt to the form's size.
OnPaint