TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sheetalw wattamwar
NA
16
0
GDI+ drawing have flicker/ slow down, need solution
Apr 12 2010 6:11 AM
Hi, I am trying to scroll text from bottom to up by using GDI+ graphics object.
my code is
Bitmap bmp = new Bitmap(1024, 768);
Graphics gr = Graphics.FromImage((Image)bmp);
for (int count = 768; count >= -0; count--)
{
gr.Clear(promptTextBackColor);
gr.DrawString(richEditor.Text, font, new SolidBrush(ForeColor), 10, count);
}
This gives too much jurk , then i used one following line of code
scrollForm.CreateGraphics().DrawImageUnscaled(bmp, 0, 0);
here scrollform is windows form on which i have to show scrolling.
now no jurk but it is very very slow, not acceptable by client.
can anyone know how to do it fast and more effective.
Please help.
Reply
Answers (
1
)
access class
Reading text files and creating string for necessary infos.