Sorry, I still don't understand what you are trying to do..
an angle is meassured in degrees (between 0 and 360) and you want to use the x-coordinate of an imagepoint for that?
Could it be you are trying to set an angle towards an imagepoint or from an imagepoint to somewhere else?