User (Legacy) Posted August 8, 2002 Report Share Posted August 8, 2002 Hi, When custom painting into the chart from C++ application (Cfx4032.dll), I am faced with the problem of how to get the pixel related to given value at given coordinates. The attached sample shows probalby the problem better than the following description. The ValueToPixel() method returns only the coordination related to the front wall of the chart. Moreover, it seems that it produces very strange results when the chart is switched to 3D clustered mode and then rotated. The ValueToPixel() method returns pixel coordinates only for given X and the value. The PaintInfo(CPI_MARKERTOPIXEL, ...) method returns pixel coordinates of the marker (i.e. for point (x) and serie (z) coordinates) -- but only for the value related to the marker. Can these be somehow combined? Also, the PaintInfo(CPI_MARKERTOPIXEL, ...) returns the pixel in the middle of the front wall of the bar even in 3D mode. How can I move the coordinations to the middle of the ceiling of the 3D bar? Thanks for you help, Petr -- Petr Prikryl (prikrylp at skil dot cz) Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.