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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...