For harder X-rays,

Energy and wavelength decide the kind of x-ray (soft or hard) that will be generated. The hard x-rays have shorter wavelength and thus possess greater energy.

1