The digital camera works by capturing light with a digital sensor array composed of millions of pixels that convert the image into an analog electrical signal, which is then converted to a digital signal. This digital signal passes through filters that adjust white balance and color before unnecessary pixels are removed to compress the image size for storage. The processed image is stored temporarily in the camera's buffer memory before being saved permanently to the memory card.