You swallow the pill-cam and it tumbles through your body, taking pictures of damaged or diseased tissue.
The LEDs at the front of the pill-cam fire out enough light to generate an image.
The CCD chip picks up the reflected light and generates a digital image.
The radio transmitter sends digital images to a computer outside your body.