Ejemplo n.º 1
0
        /// <inheritdoc/>
        public virtual void Draw(ICanvas canvas, RectF dirtyRect)
        {
            canvas.FillColor   = FillColor;
            canvas.StrokeColor = StrokeColor;

            var boundingBox = VisualView.GetBoundingBox();
            var x           = (boundingBox.X / Density) + Offset.X;
            var y           = (boundingBox.Y / Density) + Offset.Y;
            var width       = boundingBox.Width / Density;
            var height      = boundingBox.Height / Density;

            DrawnRectangle = new Rect(x, y, width, height);

            canvas.FillRectangle(DrawnRectangle);
        }