A DBR semiconductor laser is controlled in an image projecting apparatus,
which includes the DBR laser having a phase and DBR region, a light
wavelength converting device for converting fundamental-wave light
emitted from the DBR laser into second harmonic wave light, an optical
deflector for scanning the second harmonic wave in a one or
two-dimensional manner, and a modulating portion for modulating the DBR
laser. Coefficient calculating and wavelength adjusting steps are
performed within a non-drawing time. The coefficient calculating step
calculates at least one coefficient in a relationship between a DBR
current to be injected into the DBR region and a phase current to be
injected into the phase region for continuously shifting the wavelength
of the fundamental-wave light. The wavelength adjusting step changes DBR
current injected into the DBR region and phase current injected into the
phase region based on the relationship.