在Bitmap上写文本~~我是一个一个字写上去的。几十K还好说,几百K文本要五六分钟谁帮我优化下!! c#自己做的图书(带翻书效果) 用drawString()写字很慢(我是一个一个字写上去的很慢) 有个stringFormat 但不会用,谁帮我优化下! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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)); } 不好意思没传文件 http://dl2.csdn.net/down4/20080509/09191410652.rar 我看了你的代码,你应该一页一页的画,不应该所有页一起画。 比如我这样改了 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) {就可以很快地打开易中天,然后在翻页的时候再画其他页。另外你的代码耦合度太高,我懒得修改了。注意多用委托和事件。多用函数重载。 windows服务停止时出错 想把程序所有打开的窗体隐藏 C#中把Excel中的数据导入到Oracle中? 2011093002 请问一个 windows 服务的问题 学asp.net C#请介绍几本好点的书 webBrowser问题 如何用.net开发一个跟踪用户点击网页连接(连接标题)的程序 为什么dll加不进程序啊 在c#中有 VS STDIO 6。0 的Ms Comm 串口通讯控件么 一个 字符串 生成 函数的问题..... 求一个超强的SQL语句的转换,要多少分给多少分,要是回答出来,我以后改别人的项目再也不怕了。哪个回答出来我将感激他一辈子
{
this.CreateGraphics().DrawString("jinjazz路过jinjazz路过jinjazz路过jinjazz路过jinjazz路过",
this.Font, Brushes.Red, new RectangleF(10, 40, 200, 600));
}
http://dl2.csdn.net/down4/20080509/09191410652.rar
比如我这样改了 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)
{就可以很快地打开易中天,然后在翻页的时候再画其他页。另外你的代码耦合度太高,我懒得修改了。注意多用委托和事件。多用函数重载。