How Do You Tell If A Photon Is Emitted Or Absorbed?

How Do You Tell If A Photon Is Emitted Or Absorbed? It shows the electron moving down energy levels. The color of the light emitted would result from the amount of energy as it moves through shells. Absorption is shown by the energy levels increasing as the photon gains energy. The wavelengths shown relate to