levo

Data Representation

Bitmap image file size calculations

  • 3 things to know
  • Paper 2

Overview

The file size formula for bitmaps, worked calculations in bits, bytes, kilobytes and megabytes, working backwards to a width or colour depth, and how resizing changes storage.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Numbers

State the formula for the file size of a bitmap image in bits.

Key term

How do you find the file size of a bitmap image in bytes?

Numbers

Calculate the file size in bits of an 800 × 600 image with a colour depth of 1 bit.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    State the formula for the file size of a bitmap image in bits.

    Model answer

    The size in bits is width × height × colour depth. Width and height are in pixels and colour depth is in bits.

  2. 2

    How do you find the file size of a bitmap image in bytes?

    Model answer

    Work out width × height × colour depth to get the size in bits. Divide that total by 8 to give bytes.

  3. 3

    Calculate the file size in bits of an 800 × 600 image with a colour depth of 1 bit.

    Model answer

    The file size is 480,000 bits. Width × height × depth = 800 × 600 × 1 = 480,000.

  4. 4

    Calculate the file size in bytes of a 100 × 50 image with a colour depth of 8 bits.

    Model answer

    The file size is 5,000 bytes. The image needs 100 × 50 × 8 = 40,000 bits, and 40,000 ÷ 8 = 5,000.

  5. 5

    Calculate the file size in kilobytes of a 640 × 480 image with a colour depth of 4 bits.

    Model answer

    The file size is 153.6 kB. The image needs 640 × 480 × 4 = 1,228,800 bits, which is 153,600 bytes.

  6. 6

    Calculate the file size in megabytes of a 1,920 × 1,080 image with a colour depth of 24 bits.

    Model answer

    The file size is about 6.22 MB. The image needs 1,920 × 1,080 × 24 = 49,766,400 bits, which is 6,220,800 bytes.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Algorithms
Programming
Data Representation
Computer Systems

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

The table one extra row.
gainslosescopies

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AThe algorithm outputs 1.
BThe variable x falls from 5 to 3 to 1.
CThe loop stops because 1 is not greater than 1.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

ASC means sorting from smallest to largest, or A to Z.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data Representation, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.