J
Jeroen Ceuppens
I have a problem about how creating a thread:
I need a thread for drawing, because i also need to change options in some
textboxes
The drawing thread draws bmp's from a source (digital camera)
Is is possible to add the OnPaint in a thread? or how can i make it that I
can do the drawing in a thread?
protected override void OnPaint(PaintEventArgs e)
{
if (draw)
{
for (;
e.Graphics.DrawImage(bmp,100,100); //the bmp file changes
everytime
}
base.OnPaint(e);
}
I need a thread for drawing, because i also need to change options in some
textboxes
The drawing thread draws bmp's from a source (digital camera)
Is is possible to add the OnPaint in a thread? or how can i make it that I
can do the drawing in a thread?
protected override void OnPaint(PaintEventArgs e)
{
if (draw)
{
for (;
e.Graphics.DrawImage(bmp,100,100); //the bmp file changes
everytime
}
base.OnPaint(e);
}