Hi,
I have a procedure which gets a TImage object (myImage) as parameter and calculates some colors. The colors get stored with
myImage.canvas.Pixels[col, row] := myColor;
Everything works fine. To speed up the calculation, I've put everything in try and finally together with BeginUpdate() and EndUpdate():
try
myImage.Picture.Bitmap.BeginUpdate();
... (my code)
finally
myImage.Picture.Bitmap.EndUpdate();
end;
Unfortunately this stops painting the image completely. If I comment out the two lines with BeginUpdate() and EndUpdate(), everything works again.
What am I doing wrong?
Thank you.
stem