Article

From:
To:
Arnold Reinders
Subject:
Re: How threadsafe is TBitmap
Newsgroup:
embarcadero.public.delphi.graphics

Re: How threadsafe is TBitmap

Arnold Reinders wrote:

> But when I have a standalone bitmap, use only scanline to process the 
> thing, be careful that no two threads access the same scanline, there 
> should be no problem, according to Remy.

I don't know _exactly_.

Mr. Bauer, would you please help us.  
> I got errors when assigning a bitmap to a TImage displayed on a
> TForm. That is probably caused by the problems mentioned above.

You definitely must do it via Sinchronize.

> What is the best way to write an OnProgress event handler to draw the 
> the bitmap? Draw it on the canvas of a new bitmap and assign that to
> a TImage?

You definitely must do it (any drawing on form) via Sinchronize too. So
there is no too much difference how to draw.
--
Alex
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 15 Nov 2024 16:43:10 UTC
Copyright © 2009-2024
HREF Tools Corp.