Chethan
2009-05-27 12:35:35 UTC
Hi All,
I am writing a multithreaded application to draw a set of lines on to
the TImage.Canvas sequentially.
I have the image component in my main form and I spawn a new thread
to write on to the TImage.Canvas.
This results in a unperdictable output... Not all lines are drawn on
the Canvas and it varies every time i execute the app.
So then i decided to draw it in the main thread itself using the
thread synchronization... The output is perfect... But its really
slow..
Any suggestions to improve the speed?
Is there any VCL component similar to TImage out there which is thread
safe?
Best Regards
Chethan
I am writing a multithreaded application to draw a set of lines on to
the TImage.Canvas sequentially.
I have the image component in my main form and I spawn a new thread
to write on to the TImage.Canvas.
This results in a unperdictable output... Not all lines are drawn on
the Canvas and it varies every time i execute the app.
So then i decided to draw it in the main thread itself using the
thread synchronization... The output is perfect... But its really
slow..
Any suggestions to improve the speed?
Is there any VCL component similar to TImage out there which is thread
safe?
Best Regards
Chethan