title: Is there a way in a Blazor Server app to get mouse coordinates clicked
body: <p>I am trying to get motivated to move one of my open source projects called Transparency Maker from Windows Forms to Blazor, so I can put the app online.</p>
  
  <p>All of the image editing is done via text in a language called BQL (Bitmap Query Language) which is very similar to SQL.</p>
  
  <p>The one thing I don't know how to do in Blazor is get the x, y position of where the image is clicked. Windows Forms makes this very simple, although I have to do some scaling.</p>
  
  <p>Is there a JavaScript way of doing this and bringing it into Blazor?</p>
  
  <p>This is a feature I have to have, or writing a query like this is impossible for the user to know what to type:</p>
  
  <pre><code>Update
  Set Adjust Red -200
  Where
  X Between 1700 2591 
  Y Between 1930 2110 
  Total &gt; 500
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BRFvZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BRFvZ.png" alt="Work At Home Wardrobe Before"></a></p>
  
  <p><a href="https://i.stack.imgur.com/eTIha.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eTIha.png" alt="Work At Home Wardrobe After"></a></p>
  
  <p>Notice the White part of the socks in the second image, only the white was changed because the Total (Red + Blue + Green) has to be greater than 500 to perform the adjustment.</p>
  
  <p>Thanks if this is possible to get the position clicked?</p>
  
  <p>I think more people might appreciate this tool once it is online. As it is, "selling" free software is actually harder than it should be.</p>
  
  <p>Transparency Maker
  <a href="https://github.com/DataJuggler/TransparencyMaker" rel="nofollow noreferrer">https://github.com/DataJuggler/TransparencyMaker</a></p>