A method for obtaining fluorescence images with a high number of resolvable points by using spectral and frequency encoding is presented. Broadband excitation light is encoded with a wavelength-dependent frequency modulation and dispersed onto the sample with a grating to simultaneously illuminate an entire image line. The Fourier transform of the frequency-encoded fluorescence emission provides one line of the image. Mechanical scanning along a direction orthogonal to the wavelength-encoded axis allows creation of the two-dimensional fluorescent image. This method is applicable for developing submillimeter diameter endoscopes. The principles of the technique are validated by imaging indocyanine green fluorescence in microfluidic channels.