Exemplo n.º 1
0
        public void DrawRect(Snake.Core.RectangleF rect)
        {
            UIColor color = UIColor.FromRGB(0, 0, 0);

            UIGraphics.GetCurrentContext().SetFillColor(color.CGColor);
            UIGraphics.GetCurrentContext().FillRect(new RectangleF(rect.X, rect.Y, rect.Width, rect.Height));
        }
Exemplo n.º 2
0
        public void DrawRect(Snake.Core.RectangleF rect)
        {
            Paint shapepaint = new Paint();

            shapepaint.Color = global::Android.Graphics.Color.Black;
            canvas.DrawRect(rect.X, this.height - (rect.Y + rect.Height),
                            rect.X + rect.Width, this.height - rect.Y, shapepaint);
        }