예제 #1
0
        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);
        }
예제 #2
0
        public void DrawLine(IPen pen, CanvasPoint p1, CanvasPoint p2)
        {
            CheckUsability();

            _graphics.DrawLine((Pen)pen.EngineElement, p1.ToGdiPoint(), p2.ToGdiPoint());
        }
예제 #3
0
        public void DrawBitmap(IBitmap bitmap, CanvasPoint point)
        {
            CheckUsability();

            _graphics.DrawImage((Bitmap)bitmap.EngineElement, point.ToGdiPoint());
        }