I try to make my own function for drawing lines on bitmap. All lines pass through center coordinate. I faced with several problems:
Well known line equation y=tan(a)x as is doesn't work for me. Because I don't know how to match i,j coordinates in bitmap and x,y in Cartesian coordinate system.
How to make start point center of bitmap and end its bound. Maybe someone know library for this for c# it will be worse than own implementation but still help me a lot.