Skip to content

mrbenevolentcanard/Pixel_To_Degrees

Repository files navigation

Pixel_To_Degrees

Release Static Badge
This is just a little program I made in order to learn a bit of C++. It is used for converting pixels on a picture or drawning to degrees & milliradians to ease the process of making a HUD in DCS World. Note that this will work better the higher resolution the picture is.

Usage

  1. Open the .exe (or compile it yourself with the source code).
  2. Measure the reference distance in pixels. This distance should be known in degrees. Example picture is between the horizon line and -10° pitch line (10° difference):
    Reference distance example
  3. Input the pixel and degrees length of the reference distance.
    Input of reference distance
  4. Measure the length of the distance you want to know the length of in degrees. Example picture is the length of the speedtape:
    Wanted distance example
  5. Input that length.
    Input of wanted distance
  6. Result is displayed as follows (in this case the length of the speedtape is probably 5°):
    Result

I hope you find this simple program useful! :D

About

I wanted to learn C++ so this is a simple program I made for helping to reconstruct HUDs from drawings.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages