DrawString C#

来源:互联网 发布:最新网络电影预告片 编辑:程序博客网 时间:2024/05/22 15:59
 //
        // 摘要:
        //     在指定位置并且用指定的 System.Drawing.Brush 和 System.Drawing.Font 对象绘制指定的文本字符串。
        //
        // 参数:
        //   s:
        //     要绘制的字符串。
        //
        //   font:
        //     System.Drawing.Font,它定义字符串的文本格式。
        //
        //   brush:
        //     System.Drawing.Brush,它确定所绘制文本的颜色和纹理。
        //
        //   x:
        //     所绘制文本的左上角的 x 坐标。
        //
        //   y:
        //     所绘制文本的左上角的 y 坐标。
        //
        // 异常:
        //   System.ArgumentNullException:
        //     brush 为 null。- 或 -s 为 null。
        public void DrawString( string s, Font font, Brush brush, float x, float y );
原创粉丝点击