do you know the planets radii ?

from that you can calculate the pixels per meter and meters per degree
then for elevation change if it is a simple altitude change , then simple trig is all you need

sin = height/distance