0

如果我想从图像创建可调整大小的表单,我必须使用矢量图像吗?

一个例子是 Photoshop。它可以调整大小并保持圆角和外边缘,而不会使其看起来变形和拉伸。

我知道可以在背景中平铺简单的图案,但尝试拥有完美的圆角是一项艰巨的任务。这将如何完成?

4

1 回答 1

0

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.

于 2013-01-16T23:26:48.393 回答