A cubic element of photonic crystal is integrally formed on the surface of
a photo-detection element, and a portion of the photonic crystal cubic
element is irradiated with ultraviolet rays thereby to change the
refractive index of the portion of the cubic element that has been
irradiated with ultraviolet rays. Alternatively, by causing globular
particles having different refractive indices to eject on the surface of
the photo-detection element from an ink-jet apparatus having a nozzle
provided with a temperature control part by controlling temperature of
the nozzle to form a laminate of globular particle layers having
different refractive indices, a photonic crystal lens is integrally
formed on the surface of the photo-detection element.