如何在Window Form中制作圆形标签? [英] How to make a circle shape label in Window Form?

查看:34
本文介绍了如何在Window Form中制作圆形标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

众所周知,标签通常为正方形或矩形.我真的需要制作圆形标签.谁能告诉我这是可能的,或者至少可以向我指出正确的方向吗?

As you all know, a label is usually in a square or rectangle shape. I really need to make circle shaped label. Can anyone please tell me is this possible or at least point me in a right direction?

对不起,只是为了澄清一下.我想要一个圆形标签.不只是在屏幕上画一个圆.

Sorry, just to make things clear. I want a circle shaped label. Not just drawing a circle on the screen.

推荐答案

System.Drawing.Graphics graphics = this.CreateGraphics();
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(100, 100, 200, 200);
graphics.DrawEllipse(System.Drawing.Pens.Black, rectangle);

这篇关于如何在Window Form中制作圆形标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆