Since the photosphere is cooler but less dense than
the interior region it is the screen that allows the continuous blackbody
spectrum to be seen through.
Only at the wavelengths at which atoms in the
photosphere can absorb light will photons be impeded
in their outward travel.
The result is an absorption spectrum, a continuous
blackbody spectrum with dark absorption lines
superimposed on it.
The fact that we see an absorption spectrum when
we look at the photosphere is evidence that the
temperature of the photosphere decreases outwards.
The photosphere is much brighter than the outer parts of the
Sun's atmosphere (the chromosphere and the corona), so regular
photos of the Sun do not show the outer atmosphere.
During a solar eclipse the Moon blocks out the light from
the photosphere and we can only see the light coming from the
chromosphere and corona.
This series of eclipse photos show successively longer
exposures so that fainter details can be seen.
In the first picture we can only see the chromosphere
("coloured sphere") which shows up a a few red features at
the edge of the Sun.
In the longer exposure pictures we can see the fainter
Corona ("crown").
The Chromosphere is not exactly a sphere: there are
many spicules and prominences which jut outwards.
Magnetic fields help support the spicules and the
prominences.
The red colour results from the emission of Balmer-alpha
photons : electrons jumping from the n=3 level to the n=2 level.
The emission lines can only occur if the gas in the chromosphere
is very hot and the density is very low. And we do not look straight through !
The chromosphere is hotter
(but less dense) than the photosphere!
Transition Zone: Temperature shoots up to near 1 million K
Corona: Temperatures increase to about 2 million K
The source of this heat is not well understood. Current
theories suggest that magnetic waves might transport energy
from the convective zone to the corona.