private static void BottomGlow_DrawLayeredWindow(GlowTextures glowTextures, Graphics g, int width, int height) { glowTextures.BottomBrush.ResetTransform(); g.DrawImage(glowTextures.BottomWindowLeft, Rectangle.FromLTRB(0, 0, 9, 9)); g.DrawImage(glowTextures.BottomWindowRight, Rectangle.FromLTRB(width - 9, 0, width, 9)); g.FillRectangle(glowTextures.BottomBrush, Rectangle.FromLTRB(9, 0, width - 9, 9)); }
private static void RightGlow_DrawLayeredWindow(GlowTextures glowTextures, Graphics g, int width, int height) { glowTextures.RightBrush.ResetTransform(); g.DrawImage(glowTextures.RightWindowTop, Rectangle.FromLTRB(0, 0, 9, 18)); g.DrawImage(glowTextures.RightWindowBottom, Rectangle.FromLTRB(0, height - 18, 9, height)); g.FillRectangle(glowTextures.RightBrush, Rectangle.FromLTRB(0, 18, 9, height - 18)); }