A theoretical look at the direct detection of giant planets outside the Solar System