The ion-kinetic energy throughout K emission in a stagnating plasma was determined from the Doppler contribution to the shapes of optically thin lines. X-ray spectroscopy with a remarkably high spectral resolution, together with simultaneous imaging along the pinch, was employed. Over the emission period, a drop of the ion-kinetic energy down to the electron thermal energy was seen. Axially resolved time-dependent electron-density measurements and absolute intensities of line and continuum allowed for investigating, for the first time, each segment of the pinch, the balance between the ion-kinetic energy at the stagnating plasma, and the total radiation emitted. Within the experimental uncertainties, the ion-kinetic energy is shown to account for the total radiation.