A device for collimating the output of a light emitting diode (110, 210, 250, 280, 310, 330, 350, 380, 502, 526, 546, 566, 586), the device comprising: an LED substrate including a top surface from which the light is emitted; and an array of subwavelength scattering antennas (120, 220, 260, 290, 320, 340, 360, 390, 506, 528, 548, 568, 588) positioned within the emitted light path, the array of subwavelength scattering antennas configured to be aligned perpendicular to a plane of propagation of light emitted from the LED; wherein the subwavelength scattering antennas are sized smaller in lateral size than a free space wavelength of LED emitted light, wherein the lateral size of the subwavelength scattering antennas (120, 220, 260, 290, 320, 340, 360, 390, 506, 528, 548, 568, 588) is determined in a direction perpendicular to the propagation of the LED emitted light; the array of subwavelength scattering antennas configured to select directions of scatter of the LED emitted light to provide collimated light output from the device, wherein individual subwavelength scattering antennas are configured to cause the scattering to impart a certain amplitude and phase to the LED emitted light, wherein the subwavelength scattering antennas are uniquely configured to interact with light based on their structural and chemical parameters, wherein one or more of the structural attributes of the subwavelength scattering antennas vary spatially with an area or parts of the area on a plane occupied by the scattering antennas, characterised in that a chemical variation in the subwavelength scattering antennas enables a selection of refractive index and loss for scatterer to configure the scattered light amplitude and phase. an LED substrate including a top surface from which the light is emitted; and an array of subwavelength scattering antennas (120, 220, 260, 290, 320, 340, 360, 390, 506, 528, 548, 568, 588) positioned within the emitted light path, the array of subwavelength scattering antennas configured to be aligned perpendicular to a plane of propagation of light emitted from the LED; wherein the subwavelength scattering antennas are sized smaller in lateral size than a free space wavelength of LED emitted light, wherein the lateral size of the subwavelength scattering antennas (120, 220, 260, 290, 320, 340, 360, 390, 506, 528, 548, 568, 588) is determined in a direction perpendicular to the propagation of the LED emitted light; the array of subwavelength scattering antennas configured to select directions of scatter of the LED emitted light to provide collimated light output from the device, wherein individual subwavelength scattering antennas are configured to cause the scattering to impart a certain amplitude and phase to the LED emitted light, wherein the subwavelength scattering antennas are uniquely configured to interact with light based on their structural and chemical parameters, wherein one or more of the structural attributes of the subwavelength scattering antennas vary spatially with an area or parts of the area on a plane occupied by the scattering antennas, characterised in that a chemical variation in the subwavelength scattering antennas enables a selection of refractive index and loss for scatterer to configure the scattered light amplitude and phase.