/*
Metafile example
This example shows how to create or augment a metafile using a metafile canvas object.  This metafile can then be used to draw on the canvas of another object such as a paintbox or a printer.
*/
TMetafile *pMetafile = new TMetafile;
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);
pCanvas->Brush->Color = clRed;
pCanvas->Ellipse(0,0,100,100);
// ...
delete pCanvas;
Form1->Canvas->Draw(0,0,pMetafile); //1 red circle
/*
To add to an existing metafile image, create a metafile canvas and play the source metafile into the metafile canvas:
*/
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);
pCanvas->Draw(0,0,pMetafile);
pCanvas->Brush->Color = clBlue;
pCanvas->Ellipse(100,100,200,200);
// ...
delete pCanvas;
Form1->Canvas->Draw(0,0,pMetafile); // 1 red circle and 1 blue circle
// ...
delete pMetafile; 
