/// public static void GetBackgroundGrid_Ebony(Graphics g, int off, int i, GraphicsPens pens) { int corner = 7; FloatRect rect = RectangleMe2(i); RoundURectRenderer r = new RoundURectRenderer(new RectangleDoubleUnit(rect), new FloatRectCorners(0, corner, corner, 0), 1); g.SmoothingMode = SmoothingMode.Default; if (IsEbony_ClientPadded(i, off, 12)) { g.DrawPath(pens.SemiBlack, r.Path); g.SmoothingMode = SmoothingMode.HighQuality; g.FillPath(pens.SemiBlackBrush, r.Path); } g.SmoothingMode = SmoothingMode.Default; r = null; if (IsEbony_ClientPadded(i, off, 12)) g.FillRectangle(pens.AnotherBrush, RectangleMe(i)); }
/// y-plane top to bottom public static void GetBackgroundGrid_Ebony(Graphics g, float off, GraphicsPens pens) { for (float i = ui_view_settings.Rect.Top; i <= ui_view_settings.Rect.Bottom; i += ui_view_settings.NodeHeight) GetBackgroundGrid_Ebony(g, Convert.ToInt32(off), Convert.ToInt32(i), pens); }