Electrons released from filament.
Tube voltage is applied across the x-ray tube. Electrons, therefore, are accelerated towards positively charged anode, which gives them a certain energy.
#hospital The electrons strike the anode and the energy released via interaction with the anode atoms produces x-ray photons.