09-13-2007 12:59 PM
09-14-2007 05:31 PM
09-14-2007 06:36 PM
Hi Adam,
Here is a bitmap showing the difference between the output of V6 vs. V8. These two copied graphs came from the same source code (our C# code) running two different versions of cwui.ocx. We used the AxCWGraph.ControlImage() function. I can put together example code that reproduces the problem if this isn't enough info.
Neil
09-17-2007 06:37 PM
09-18-2007 01:30 PM
Hi Adam,
Here is the example. As I mentioned previously, V6 seems to give me the output I expect. However, it appears that the problem does not show up until I use the Graphics object to copy to the Metafile mf. The metafile I get back from the call to ControlImage seems to be right, though the square annotation lines clearly extend off the edge of the graph. This gives me some hope that I can find a work around.
09-18-2007 03:14 PM
I found a work around to the problem. I defined a Clip Region on the Graphics grfxMetafile object in the supplied code. Setting the Region size to the size of the orginal graph cuts off the extra annotation rectangle that I don't want. The ends of the annotation rectangle sort of hang off the edge of the graph over the graphs border, but at least it doesn't give me the whole annotation region on the clipboard.
Neil
09-18-2007 07:20 PM
09-28-2007 07:43 PM