Laser scanning confocal microscope with programmable amplitude, phase, and polarization of the illumination beam.