Exemplo n.º 1
0
        private void MarqueeColorBar_Paint(object sender, PaintEventArgs e)
        {
            double Width = this.Width + this.Width / 5;
            double speed = Width * Math.Tanh(((double)Width / 2 - value) * 4 / Width) / 2 + Width / 2 - this.Width / 5;
            int    width = this.Width / 5;

            ViewBuffer buffer = new ViewBuffer();

            buffer.CreateGraphics(this.Width, Height);
            buffer.g.FillRectangle(new SolidBrush(Color.FromArgb(200, 231, 113, 189)), (float)speed, 0, width, Height);
            buffer.Draw(e.Graphics);
        }
Exemplo 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;

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

            buffer.Draw(e.Graphics);
            buffer.Dispose();
        }
Exemplo n.º 3
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();
        }