A spectrally encoded endoscopic probe. The probe has a light guiding component, a light focusing component, and a grating component. The probe is configured such that a set of light beams of multiple wavelengths are diffracted by the grating component in different orders at substantially the same angle. The set of light beams includes at least 3 light beams. Each light beam among the set of light beams is associated with a different wavelength.