我想使用 GDI+ 绘制一个 3D 边框(斜角),例如Paint在Control. 我应该自己用DrawLineand写吗KnownColors或者有什么东西可以使用吗?
谢谢赛义德
你用什么画画?WinForms 上的 GDI+?如果是这种情况,您可以使用ControlPaint.DrawBorder3D方法,例如在Paint事件处理程序中:
ControlPaint.DrawBorder3D(e.Graphics,
((Control)sender).ClientRectangle,
Border3DStyle.Bump);
有关所有可用样式的列表,请参阅Border3DStyle枚举。