解决方案 »

  1.   

    看了你上一帖,如果QQ是用GDI+画的,那么肯定用了阴影,也就是画两个同样的字符串,用不同的颜色画,使之重合,当然不是完全重合.至于字体上半颜色与下半颜色不同,只是GDI+填充的画刷设置方面.不清楚GDI+的graphicPath 是否能画字符串
    不过个人感觉是用其它的语言写的,同意上贴说是用flash或者fireworks做的,这两工具也是能用代码做的.
      

  2.   

     private void button1_Click(object sender, EventArgs e)
            {
                Thread th = new Thread(new ParameterizedThreadStart(Method));
                th.IsBackground = true;
                th.Start();
            }
            private void CreatePicture(int a,int b)
            {
                int i = 0;
                Graphics g = this.CreateGraphics();
                Font drawFont = new Font("Arial", 16);
                SolidBrush drawBrush = new SolidBrush(Color.Black);
                SolidBrush drawBrush1 = new SolidBrush(Color.Red);
                g.DrawString("A", drawFont, drawBrush, new PointF(20, 40));
                for (i = 1; i < 100; i++)
                {
                    g.DrawString("A", drawFont, drawBrush1, new RectangleF(new PointF(20, 40), new SizeF(i, 20)));
                    Thread.Sleep(1000);
                }
            }刚刚尝试了下.有点效果,不过要做成QQ那个效果估计很麻烦.LZ可以参考下.