コード例 #1
0
 public void DrawString(Canvas.Font font, Canvas.Brush brush, string text, PointF p)
 {
     if (font == null || brush == null || text == null)
     {
         throw new GraphicsException(StringConsts.ARGUMENT_ERROR + "{0}.{1}(font|brush|text=null)".Args(nameof(Canvas), nameof(DrawString)));
     }
     EnsureObjectNotDisposed();
     m_Handle.DrawString(font.Handle, brush.Handle, text, p);
 }
コード例 #2
0
 public void DrawString(Canvas.Font font, Canvas.Brush brush, string text, float x, float y) => DrawString(font, brush, text, new PointF(x, y));
コード例 #3
0
 public void FillRectangle(Canvas.Brush brush, RectangleF rect)
 {
     checkFillRectangle(brush);
     m_Handle.FillRectangle(brush.Handle, rect);
 }
コード例 #4
0
 public void FillRectangle(Canvas.Brush brush, PointF p, SizeF s) => FillRectangle(brush, new RectangleF(p, s));
コード例 #5
0
 public void FillRectangle(Canvas.Brush brush, float x, float y, float w, float h) => FillRectangle(brush, new RectangleF(x, y, w, h));
コード例 #6
0
 public void FillRectangle(Canvas.Brush brush, int x, int y, int w, int h) => FillRectangle(brush, new Rectangle(x, y, w, h));