I am loading a bitmap with a fixed W/H of 467 pixel into a picture box and when that picture box is clicked i am capturing the muse X/Y and then i need to convert those X/Y into a real time map coords.
For example the market place map has a fixed width/height of 384 and the picture box where the mini map is loaded has a fixed W/H of 467.
Assuming that i clicked somewhere on the loaded picture box aka the "mini map".. Somewhere near the love stone. How do i convert the mouse X/Y to point to the exact same location on the real market map?
The point is to be able to travel to any desired location only by clicking on that location on the mini map.. Like COG does.
It seemed like a very simple task to do but mehh i suck at math and i am not getting the idea at all.
For example the market place map has a fixed width/height of 384 and the picture box where the mini map is loaded has a fixed W/H of 467.
Assuming that i clicked somewhere on the loaded picture box aka the "mini map".. Somewhere near the love stone. How do i convert the mouse X/Y to point to the exact same location on the real market map?
The point is to be able to travel to any desired location only by clicking on that location on the mini map.. Like COG does.
It seemed like a very simple task to do but mehh i suck at math and i am not getting the idea at all.