An X-ray machine is essentially a camera. Instead of visible light, however, it uses X-rays to expose the film. X-rays are like light in that they are electromagnetic waves, but they are more energetic so they can penetrate many materials to varying degrees.