Jump to content
Software FX Community

Converting pixels to chart coordinates


jeffm

Recommended Posts

Hi there.  Is there an easy way to convert back and forth between the view coordinates reported by mouse events and "chart coordinates" (ie, actual data coordinates that take current zoom level into account)?  Thanks alot.

 Jeff Morrow 

Link to comment
Share on other sites

I believe what you are looking for are the ValueToPixel and PixelToValue methods of the Axis Object. They are both documented in your API Reference, but here are the online version of these documents.

http://support.softwarefx.com/OnlineDoc/CfxCS62/WebAPI/Axis_ValueToPixel.htm

http://support.softwarefx.com/OnlineDoc/CfxCS62/WebAPI/Axis_PixelToValue.htm

---

Andre G

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...