Printing in LOMETRIC
Posted on 2004-09-02
Most of my print code is working great, except for one section that is giving me problems.
At one point in the printout, I need to draw a series of plots for a graph within a given area of the page without going outside that area. Rendering to the screen was easy enough, i just made a buffer dc, and gave it a bitmap the size of the area i wante. I then rendered the plots onto the buffer and blitted the buffer onto the main DC.
That same method yields unfavourable results when used for printing. I am printing in LOMETRIC mapping mode (1 point = .1mm, negative Y-Axis). When i print using that mehtod, I end up with a solid color where the plots should have rendered.
I need help to either make this buffer dc method work, or i need a viable alternative. Whatever the solution, the plots rendered CANNOT go outside the given area so there must be some method of clipping off what is un wanted.
// here is the buffer dc code that has failed
CBitmap* pOldBM = dcPlots.SelectObject(&bmPlots);
/* plots rendered onto dcPlots HERE */
Thanks for your help in advance