Пример #1
0
        public void DrawAndFillRectangle(SolidColor lineColor, IColor fillColor, Rectangle rect, float weight, LineStyles lineStyle)
        {
            if (fillColor is SolidColor)
            {
                this.FillRectangle(rect, (SolidColor)fillColor);
            }

            this.DrawRectangle(rect, lineColor, weight, lineStyle);
        }
Пример #2
0
        public void DrawAndFillRectangle(SolidColor lineColor, IColor fillColor, Rectangle rect)
        {
            if (fillColor is SolidColor)
            {
                this.FillRectangle(rect, (SolidColor)fillColor);
            }

            this.DrawRectangle(rect, lineColor);
        }
Пример #3
0
        public void FillRectangle(float x, float y, float width, float height, IColor color)
        {
            if (color is SolidColor)
            {
                var solidColor = (SolidColor)color;

                using (var p = new Paint())
                {
                    p.Color = solidColor;

                    this.FillRectangle(p, x, y, width, height);
                }
            }
        }
Пример #4
0
 public void FillRectangle(Rectangle rect, IColor color)
 {
     this.FillRectangle(rect.X, rect.Y, rect.Width, rect.Height, color);
 }
Пример #5
0
 public void FillEllipse(IColor fillColor, Rectangle rectangle)
 {
     // TODO
 }
Пример #6
0
 public void FillPath(IColor color, Path graphicsPath)
 {
     // TODO
 }