If you are going to get a typical x-ray imaging of the chest, you don't need to starve yourself. However, a certain x-ray may require a patient to fast before undergoing it. You can confirm with your doctor if you need to fast before an x-ray test.