I have a bunch of coordinates and I draw them on a Bitmap Image to then display them on an Image control in a Wpf application.
Given data to take into consideration:
My Bitmap File is
1000 * 1000The Bitmap File gets filled in a
660 * 440Image Control(0,0) of my coordinate system is (500,500) in the Bitmap File, so (330, 220) of the Image Control.
Now what I am trying to accomplish is to highlight the coordinates that are near my Mouse.
Other things to take into consideration:
Mouse Position is given with respect to the Image Control
Y-Axis is inverted on the Bitmap (0,0) is at top and (0, max) is at bottom (but don't get confused on this one, simply once we finish all the calculations we then just flip all Ys of our coordinates - will be displayed correct)
Now if you love programming, this is what I am stuck on right now. But here, I will use my awesome Painting Skills I explain the problem:
