Пример #1
0
        private void DrawInfoText(Graphics g, string text, Rectangle rect, Font font, int padding,
            Brush backgroundBrush, Pen outerBorderPen, Pen innerBorderPen, Brush textBrush, Brush textShadowBrush)
        {
            g.FillRectangle(backgroundBrush, rect.Offset(-2));
            g.DrawRectangleProper(innerBorderPen, rect.Offset(-1));
            g.DrawRectangleProper(outerBorderPen, rect);

            g.DrawTextWithShadow(text, rect.Offset(-padding).Location, font, textBrush, textShadowBrush);
        }
Пример #2
0
 private void DrawInfoText(Graphics g, string text, Rectangle rect, int padding)
 {
     g.FillRectangle(textBackgroundBrush, rect.Offset(-2));
     g.DrawRectangleProper(textBackgroundPenBlack, rect.Offset(-1));
     g.DrawRectangleProper(textBackgroundPenWhite, rect);
     g.DrawTextWithShadow(text, rect.Offset(-padding).Location, infoFont, Brushes.White, Brushes.Black);
 }
Пример #3
0
        private void DrawFPS(Graphics g, int offset)
        {
            Rectangle screenBounds = CaptureHelpers.GetActiveScreenBounds0Based();

            g.DrawTextWithShadow(FPS.ToString(), screenBounds.Location.Add(offset), infoFontBig, Brushes.White, Brushes.Black, new Point(0, 1));
        }