How is the image size calculated for a 100×100 pixels image with 8-bit colour?

Prepare for the Leaving Certificate Computer Science Test with a mix of flashcards and multiple choice questions, each designed to enhance learning. Discover tips and resources for success. Ace your exam with confidence!

To calculate the image size for a 100×100 pixel image with 8-bit color, we start by understanding the terms involved:

  1. The dimensions of the image are 100 pixels by 100 pixels, which gives us a total of 10,000 pixels (100 × 100).
  1. Each pixel is represented by 8 bits because the color depth is specified as 8-bit color. This means each pixel can display 256 different colors.

To find the total size in bytes, we need to convert the total number of bits used for the pixels to bytes. Since 8 bits equal 1 byte, we use the following steps:

  • First, calculate the total number of bits:

100 (width) × 100 (height) × 8 (bits per pixel) = 8,000 bits.

  • Next, to convert bits to bytes, we divide by 8:

8,000 bits ÷ 8 = 1,000 bytes.

The final calculation was misrepresented in the question, as the process outlined in the chosen response effectively calculates the correct byte size correctly in the format of pixels multiplied by bits, then converting. The calculated total of 10,000 bytes indicates that

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy