Context
I am drawing to a canvas, this is updated regularly and it flashes. Logically thinking I assumed this is because my redraw method clears the Canvas then draws one element at a time to the canvas. so my idea was to write to a Timage then set the picture to the Timage.
Information
here is my code
procedure Tmainwindow.Button3Click(Sender: TObject);
var bufferpicture:TImage;
begin
//draw stuff to bufferpicture
//***
//draw stuff to bufferpicture
myrealpicture.picture:=bufferpicture.picture;
end;
Upon running the code I get a error show below.
Question How do I set the canvas of one to another since canvas is a read only property? or is there a better way to do what i am trying to do?