Du meinst Delphi, nicht war?
Also leg ne Globale Variable
Buffer: TBitmap;
an. Im OnCreate des Forms:
Dann im OnPaint der PaintBox:
Und jetzt halt alle Befehle statt auf PAintBox auf Buffer ausführen, also:
PaintBox1.Canvas.Pixel[5,5] := clWhite;
wird zu
Buffer.Canvas[...]
usw.