public void DrawBitmap(IBitmap bitmap, CanvasRectangle dest, CanvasRectangle source, float opacity = 1) { _canvas?.DrawBitmap((SKBitmap)bitmap.EngineElement, source.ToSKRect(), dest.ToSKRect(), new SKPaint() { FilterQuality = this.InterpolationMode.ToSKFilterQuality(), Color = SKColors.Black.WithAlpha((byte)(255 * opacity)) });; }
public void FillRectangle(IBrush brush, CanvasRectangle rectangle) { _canvas?.DrawRect(rectangle.ToSKRect(), GetSKPaint(brush)); }
public void DrawRectangle(IPen pen, CanvasRectangle rectangle) { _canvas?.DrawRect(rectangle.ToSKRect(), GetSKPaint(pen)); }