Examples Delphi

If you have a complicated drawing to create (e.g. a fractal) you may want to
make sure that you do the drawing only one time
though make sure that your picture is refreshed when needed
Solution:
Draw on a bitmap in memory and draw this bitmap on the form's canvas in the OnPaint.
With D3 you could use the scanline-property for this which is very fast compared to
drawing on a canvas.