c#自己做的图书(带翻书效果)    用drawString()写字很慢(我是一个一个字写上去的很慢)
  有个stringFormat  但不会用,
谁帮我优化下!

解决方案 »

  1.   

    private void Form1_Paint(object sender, PaintEventArgs e)
            {
                this.CreateGraphics().DrawString("jinjazz路过jinjazz路过jinjazz路过jinjazz路过jinjazz路过", 
                    this.Font, Brushes.Red, new RectangleF(10, 40, 200, 600));
            
            }
      

  2.   

    不好意思没传文件
      http://dl2.csdn.net/down4/20080509/09191410652.rar
      

  3.   

    我看了你的代码,你应该一页一页的画,不应该所有页一起画。 
    比如我这样改了 private void drawPageBitmap(string Content, Image image, Font f, SolidBrush b, int iPage)
            {            //...
                for (int i = 0; i < Content.Length; i++)
                {
                    if (BitmapCount >= iPage && BitmapCount <= iPage+1)
                    {就可以很快地打开易中天,然后在翻页的时候再画其他页。另外你的代码耦合度太高,我懒得修改了。注意多用委托和事件。多用函数重载。