An X-ray is a painless procedure that involves sending a beam of radiation through the body to get an image of the bones and certain organs. You might be asked to sit, stand or lay down in a special room with the X-ray machine. Depending on the type of image that is needed, you might be asked to hold your breath for a few seconds.