title: c# How to identify the cordinates on two diffrent size rectangle?
body: <p>I have an image of width "ImageWidth",Height "ImageHeight" and PDF of width "PdfWidth",Height "PdfHeight". Both of them has same content(extact replica) but with diffrent dimensions.</p>
  
  <p>Now I am Marking the location lets say (X, Y) on the image. How can I get the same Location in PDF?</p>
  
  <p>Here is my code but it's not perfect </p>
  
  <pre><code>var x = Convert.ToInt32(PdfWidth * (XAxies / ImageWidth));
  var y = Convert.ToInt32(PdfHeight - (PdfHeight * (YAxies /ImageHeight)));
  </code></pre>