title: Determining pixel coordinates across display resolutions
body: <p>If a program displays a pixel at X,Y on a display with resolution A, can I <em>precisely</em> predict at what coordinates the same pixel will display at resolution B?</p>
  
  <p><strong>MORE INFORMATION</strong></p>
  
  <p>The 2 display resolutions are:</p>
  
  <p>A-->1366 x 768</p>
  
  <p>B-->1600 x 900</p>
  
  <p>Dividing the max resolutions in each direction yields:</p>
  
  <p>X-direction scaling factor = 1600/1366 = 1.171303075</p>
  
  <p>Y-direction scaling factor = 900/768 = 1.171875</p>
  
  <p>Say for example that the only red pixel on display A occurs at pixel (1,1).  If I merely scale up using these factors, then on display B, that red pixel will be displayed at pixel (1.171303075, 1.171875).  I'm not sure how to interpret that, as I'm used to thinking of pixels as integer values.  It might help if I knew the exact geometry of pixel coordinates/placement on a screen.  e.g., do pixel coordinates (1,1) mean that the center of the pixel is at (1,1)?  Or a particular corner of the pixel is at (1,1)?  I'm sure diagrams would assist in visualizing this--if anyone can post a link to helpful resources, I'd appreciate it.  And finally, I may be approaching this all wrong.  </p>
  
  <p>Thanks in advance.</p>