Hi. I'm doing a process with Imageen that open a TIFF image and rotate it some and rotate the image a few degrees.
This process works perfectly with the first image.
Later I load a second image through a loop and when I start to rotate the image, the first image appears again. I imagine that I have not freed a buffer, but I have been with it for a while and I do not detect the error.
Here you have part of the code:
for i := 0 to num_images do
begin
Image.ClearAll();
Image.Deselect();
Image.IO.LoadFromFile(images[i]); // This function correctly loads and displays all images
Image.Fit();
Application.ProcessMessages;
while not enc do
begin
// do some work
Image.RotateTool.Rotation := -25+j; // But when you run this for the second and successive images, it reloads the first one
end;
end;
Could someone please help me?
Thanks in advance]