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)); }
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); }