public void DrawText(string text, IFont font, IBrush brush, CanvasPoint point, IDrawTextFormat format) { CheckUsability(); _graphics.DrawString(text, (Font)font.EngineElement, (Brush)brush.EngineElement, point.ToGdiPoint(), (StringFormat)format?.EngineElement); }
public void DrawLine(IPen pen, CanvasPoint p1, CanvasPoint p2) { CheckUsability(); _graphics.DrawLine((Pen)pen.EngineElement, p1.ToGdiPoint(), p2.ToGdiPoint()); }
public void DrawBitmap(IBitmap bitmap, CanvasPoint point) { CheckUsability(); _graphics.DrawImage((Bitmap)bitmap.EngineElement, point.ToGdiPoint()); }