BiliRanking.Core.Zhubang.AddKongxin C# (CSharp) Method

AddKongxin() private method

private AddKongxin ( string s, int x, int y, int size ) : void
s string
x int
y int
size int
return void
        void AddKongxin(string s,int x,int y,int size)
        {
            GraphicsPath pth = new GraphicsPath();
            pth.AddString(s, new FontFamily("微软雅黑"), (int)FontStyle.Bold, size, new Point(x, y), sf);

            g.FillPath(new SolidBrush(Color.White), pth);
            g.DrawPath(p, pth);

            //g.DrawString(s, new Font("微软雅黑", size + 5, FontStyle.Bold), new SolidBrush(Color.Black), x, y, sf);
            //g.DrawString(s, new Font("微软雅黑", size, FontStyle.Bold), new SolidBrush(Color.White), x, y, sf);
        }