public void FillRectangle(Rectangle rect,Cairo.Context ctx,bool known,bool selected) { if(known) ctx.SetSourceRGBA (0, 0,0.7, 0.3); else ctx.SetSourceRGBA (0.7, 0,0, 1.3); ctx.LineWidth = selected ? 8.2 : 0.8 ; Rectangle r = ImageCoordsToWindow (rect); Log.Debug("Fill Rectangle"+rect.ToString()+ " >>> "+r.ToString() + " ["+XOffset +","+YOffset+"]" ); ctx.MoveTo (r.X, r.Y); ctx.LineTo (r.X + r.Width, r.Y); ctx.LineTo (r.X + r.Width, r.Y + r.Height); ctx.LineTo (r.X, r.Y + r.Height); ctx.LineTo (r.X, r.Y); ctx.Stroke (); }