static public void GetBackgroundGrid_Ebony(Graphics g, float off, GraphicsPens pens) { for (float i = ui.Rect.Top; i <= ui.Rect.Bottom; i += ui.NodeHeight) { GetBackgroundGrid_Ebony(g, Convert.ToInt32(off), Convert.ToInt32(i), pens); } }
static public void GetBackgroundGrid_Ebony(Graphics g, int off, int i, GraphicsPens pens) { int corner = 7; FloatRect rect = RectangleMe2(i); // rect.Location.X -= 16; 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)); } }
/// BackgroundImg Rendering Process public static void GetBackgroundGrid_X(Graphics g, int off) { FloatRect grid = ui.ClientRect; using (GraphicsPens pens = DefaultPens) foreach (int i in GetInt32XEnumeration()) { if (IsGutterXMod(i, off, TimeState.PxTpb)) { g.DrawLine(pens.GridBar, i, grid.Top, i, grid.Bottom); } else if (IsGutterXMod(i, off, TimeState.PxTpn)) { g.DrawLine(pens.GridRowMid, i, grid.Top, i, grid.Bottom); } else if (IsGutterXMod(i, off, TimeState.PxPpn)) { g.DrawLine(pens.GridRowDiv, i, grid.Top, i, grid.Bottom); } else { g.DrawLine(pens.GridPen, i, grid.Top, i, grid.Bottom); } } }
/// BackgroundImg Rendering Process public static void GetBackgroundGrid_Y(Graphics g, int off) { using (GraphicsPens pens = DefaultPens) foreach (float i in EnumerateSingleClientRectGutterTopPerRowY()) { int value = GetGutterY(i, off, ui.ClientPadding.Top) + 127; value = 127 - value; if (value < -1 || value > 127) { continue; } if (IsGutterYModFIX(i, off, ui.ClientPadding.Top, 12)) { DrawLine(g, pens.GridPen, GetClientSizeAtY(i), GetClientLocationAtY(i)); DrawLine(g, pens.GridRowHeavy, ui.Rect.Left, i, ui.Rect.Right, i); } else { g.DrawLine(pens.GridPen, 0, i, ui.Rect.Right, i); } } }
public static void GetBackgroundGrid_Ebony(Graphics g, int off) { using (GraphicsPens pens = DefaultPens) GetBackgroundGrid_Ebony(g, off, pens); }