According to the invention, in a hermetically sealed laser-diode component having a light output window, an optically non-transparent layer (3) is applied onto this window (7), and light is projected onto the layer (3) via an optical waveguide (1) in order directly or indirectly to produce an aperture (4). <IMAGE>