vb2010如何制作圆形图片框
正在自编一个象棋打谱软件,棋子都是圆形的,方形的图片框会遮盖住棋盘很多部分,颇不美观,请教高手如何制作一个圆形的图片控件,正好能放入棋子,这样走棋时比较美观大方。恳请高手赐教!
2016-09-12 09:18
程序代码:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyGraphics As System.Drawing.Graphics
MyGraphics = Me.CreateGraphics()
MyGraphics.DrawEllipse(Pens.Navy, New Rectangle(100, 100, 100, 100))
MyGraphics.FillEllipse(Brushes.Blue, New Rectangle(100, 100, 100, 100))
MyGraphics.DrawString("帅", New Font("宋体", 36, FontStyle.Bold), Brushes.Red, 118, 125)
End Sub

2016-09-12 11:00


2016-09-12 11:03
2016-09-12 17:06

2016-09-12 17:53
2016-09-13 15:38
2016-09-13 20:49
2016-09-14 09:44

2016-09-14 09:48
2016-09-14 10:02