strange problem with teeCreateMetafile
Posted: Tue Apr 12, 2005 5:26 am
Hello,
I have a strange problem that is appearing. It only happens if I used a colorGrid with the rainbow palette. If I use my own palette it does not happen.
Basically, when I render the TChart to a PDF file, I first use TeeCreateMetafile and then paint that metafile onto the PDF. For the type of plot I describe above, I always get a black background on the picture in the PDF.
However, I use the same technique to print, except I render the PDF to a bitmap and then print the bitmap. If I do this on WinXP all is well. If I do this on win2k, the bitmap that goes to the print gets a black background.
The support staff at the pdf company (wptools) said the PDF problem is as a result of the pdf file not supporting ROP commands that were sent to it. Is it possible that win2k also does not support these when converting metafiles to bitmaps. Do you guys know where you would be doing this, and why it only happens with the rainbow palette.
Thanks,
Dave
I have a strange problem that is appearing. It only happens if I used a colorGrid with the rainbow palette. If I use my own palette it does not happen.
Basically, when I render the TChart to a PDF file, I first use TeeCreateMetafile and then paint that metafile onto the PDF. For the type of plot I describe above, I always get a black background on the picture in the PDF.
However, I use the same technique to print, except I render the PDF to a bitmap and then print the bitmap. If I do this on WinXP all is well. If I do this on win2k, the bitmap that goes to the print gets a black background.
The support staff at the pdf company (wptools) said the PDF problem is as a result of the pdf file not supporting ROP commands that were sent to it. Is it possible that win2k also does not support these when converting metafiles to bitmaps. Do you guys know where you would be doing this, and why it only happens with the rainbow palette.
Thanks,
Dave