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); }
public void DrawString(Canvas.Font font, Canvas.Brush brush, string text, float x, float y) => DrawString(font, brush, text, new PointF(x, y));
public void FillRectangle(Canvas.Brush brush, RectangleF rect) { checkFillRectangle(brush); m_Handle.FillRectangle(brush.Handle, rect); }
public void FillRectangle(Canvas.Brush brush, PointF p, SizeF s) => FillRectangle(brush, new RectangleF(p, s));
public void FillRectangle(Canvas.Brush brush, float x, float y, float w, float h) => FillRectangle(brush, new RectangleF(x, y, w, h));
public void FillRectangle(Canvas.Brush brush, int x, int y, int w, int h) => FillRectangle(brush, new Rectangle(x, y, w, h));