Ejemplo n.º 1
0
        private void PicDetailElement_Paint(object sender, PaintEventArgs e)
        {
            ViewBuffer buffer = new ViewBuffer();

            buffer.CreateGraphics(Width, Height);
            Graphics g = buffer.g;

            vuiPB.Paint(g);

            g.SmoothingMode     = SmoothingMode.HighQuality;
            g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

            vuiLabels.ForEach(x => x.Paint(g));
            vuiButtons.ForEach(x => x.Paint(g));

            buffer.Draw(e.Graphics);
            buffer.Dispose();
        }
Ejemplo n.º 2
0
        private void PicDetailElement_Paint(object sender, PaintEventArgs e)
        {
            ViewBuffer buffer = new ViewBuffer();

            buffer.CreateGraphics(Width, Height);
            Graphics g = buffer.g;

            vuiPB.Paint(g);

            g.SmoothingMode     = SmoothingMode.HighQuality;
            g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

            float star_position = vuiPB.Location.X + 4;

            if (downloaded_overlapping)
            {
                g.DrawString("★", new Font(font.FontFamily, 12), Brushes.Orange, new PointF(star_position, vuiPB.Location.Y));
                star_position += 6;
            }

            if (hidden_data)
            {
                g.DrawString("★", new Font(font.FontFamily, 12), Brushes.SkyBlue, new PointF(star_position, vuiPB.Location.Y));
                star_position += 6;
            }

            if (bookmark)
            {
                g.DrawString("★", new Font(font.FontFamily, 12), Brushes.OrangeRed, new PointF(star_position, vuiPB.Location.Y));
            }

            vuiLabels.ForEach(x => x.Paint(g));
            vuiButtons.ForEach(x => x.Paint(g));

            buffer.Draw(e.Graphics);
            buffer.Dispose();
        }