X-rays can be absorbed or scattered when they interact with matter, leading to different types of imaging techniques.