Esempio n. 1
0
File: Canvas.cs Progetto: zhabis/nfx
 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);
 }
Esempio n. 2
0
File: Canvas.cs Progetto: zhabis/nfx
 public void DrawString(Canvas.Font font, Canvas.Brush brush, string text, float x, float y) => DrawString(font, brush, text, new PointF(x, y));
Esempio n. 3
0
File: Canvas.cs Progetto: zhabis/nfx
 public void FillRectangle(Canvas.Brush brush, RectangleF rect)
 {
     checkFillRectangle(brush);
     m_Handle.FillRectangle(brush.Handle, rect);
 }
Esempio n. 4
0
File: Canvas.cs Progetto: zhabis/nfx
 public void FillRectangle(Canvas.Brush brush, PointF p, SizeF s) => FillRectangle(brush, new RectangleF(p, s));
Esempio n. 5
0
File: Canvas.cs Progetto: zhabis/nfx
 public void FillRectangle(Canvas.Brush brush, float x, float y, float w, float h) => FillRectangle(brush, new RectangleF(x, y, w, h));
Esempio n. 6
0
File: Canvas.cs Progetto: zhabis/nfx
 public void FillRectangle(Canvas.Brush brush, int x, int y, int w, int h) => FillRectangle(brush, new Rectangle(x, y, w, h));