Just an update and or interesting information for users of Goo::Canvas. I have been messing with an application were the user can click on a map to insert a waypoint. The problem I was having was that when you zoom in and add a waypoint, the point would be off a distance. This increased greatly as you zoom in. Well using excel and some testing I think I found a correction factor for this zoom error:
z = zoom in percent (ex 100) x0 = x pixel of real pixel y0 = y pixel of real pixel x = x pixel of fake pixel y = y pixel of fake pixel x0 = (100*(x+0.6105))/z y0 = (100*(y+0.2526))/z
I don't know if this is dependent on the starting canvas size or not. I do encourage users to test this correction and see if it works for other situations. If this needs to be moved somewhere else let me know, I just put it in the most familiar place.

In reply to Goo::Canvas zoom correction by deadpickle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.