vb2010如何制作圆形图片框
正在自编一个象棋打谱软件,棋子都是圆形的,方形的图片框会遮盖住棋盘很多部分,颇不美观,请教高手如何制作一个圆形的图片控件,正好能放入棋子,这样走棋时比较美观大方。恳请高手赐教!
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