Gradient Problems with teeCreateMetaFile?
Posted: Wed Mar 09, 2005 6:34 pm
Here's a bizarre problem that I've been banging my head against for a while:
MF:=Chart.teeCreateMetaFile(True, Rect(0,0,NewWidth,NewHeight));
clipboard.assign(MF);
PlayEnhMetafile(TgtCanvas.Handle, MF.Handle, RectangleToPrintIn);
The metafile MF contains the correct gradient. I put that clipboard.assign call in there so I could check it. However, the gradient never gets drawn to TgtCanvas. The rest of the graph looks great - but no gradient.
Any ideas?
MF:=Chart.teeCreateMetaFile(True, Rect(0,0,NewWidth,NewHeight));
clipboard.assign(MF);
PlayEnhMetafile(TgtCanvas.Handle, MF.Handle, RectangleToPrintIn);
The metafile MF contains the correct gradient. I put that clipboard.assign call in there so I could check it. However, the gradient never gets drawn to TgtCanvas. The rest of the graph looks great - but no gradient.
Any ideas?