如何制作椭圆形2 [英] How to make an oval shape 2
本文介绍了如何制作椭圆形2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以电源设计师的形式制作椭圆形
当我单击带有椭圆形图标的按钮时,可以在窗体或图片框上绘制椭圆形.
how to make an oval shape in form as power designer
when I click a button that has a oval shape icon, i can draw an oval shape at a form or at a picture box
推荐答案
绘制椭圆形非常简单:您所需要做的就是调用 Graphics.DrawElipse [ ^ ]方法在适当的Graphics上下文中.
最简单的方法是处理(例如)面板的Paint事件-这将为您提供面板的Graphics上下文,作为PaintEventArgs参数的Graphics属性.
Drawing an oval is pretty easy: all you need to do is call one of the Graphics.DrawElipse[^] methods on the appropriate Graphics context.
The easiest way is to handle the Paint Event for (say) a Panel - that will give you the Graphics context for the panel as the Graphics property of the PaintEventArgs parameter.
e.Graphics.DrawEllipse(Pens.Black, e.ClipRectangle)
这篇关于如何制作椭圆形2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文