levo

Fundamentals of Data Representation

Bitmapped graphics

  • 2 things to know
  • Paper 2
Start revising · £5/month

Overview

Recall questions on pixels, resolution and colour depth, how many colours a given depth allows, and calculating the storage an image needs.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Explain how a bitmap represents an image.

Numbers

What happens when a bitmapped image is enlarged, and why?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Explain how a bitmap represents an image.

    Model answer

    The image is divided into a rectangular grid of small squares called pixels. Each pixel is given a single colour, and that colour is stored as a binary number. The file holds those numbers in order, row by row, so the image is reconstructed by colouring the pixels in the grid according to the stored values. No shapes or lines are recorded, only the colour of every individual pixel.

  2. 2

    What is meant by the size of an image in pixels?

    Model answer

    It is the width of the image in pixels multiplied by its height in pixels, so an image 800 pixels wide and 600 pixels high has a size of 480 000 pixels. Note that the size of an image in this sense is sometimes loosely called its resolution, which is why questions state the width and height explicitly.

  3. 3

    What is meant by the resolution of a bitmapped image?

    Model answer

    Resolution measures how tightly the pixels are packed rather than how many there are: it counts the pixels — each one a single dot of the picture — falling within one inch of the printed or displayed image. A 600 by 600 image reproduced at 300 pixels to the inch covers two inches square; the same file at 100 covers six inches square and the individual dots start to show. So the pixel dimensions tell you how much detail is stored, while the resolution tells you how far that detail is spread out when the image is reproduced.

  4. 4

    What is meant by colour depth?

    Model answer

    Colour depth is the number of bits stored for each pixel. It determines how many different colours a pixel can be given: a colour depth of n bits allows 2ⁿ different colours.

  5. 5

    An image is 1200 pixels wide and 900 pixels high, at 300 dots per inch, with a colour depth of 24 bits. State its size in pixels, its resolution, its colour depth and its printed dimensions.

    Model answer

    Its size in pixels is 1200 × 900 = 1 080 000 pixels. Its resolution is 300 dots per inch. Its colour depth is 24 bits per pixel, allowing 2²⁴ colours. Printed at 300 dots per inch it measures 1200 ÷ 300 = 4 inches wide by 900 ÷ 300 = 3 inches high.

  6. 6

    How many colours are available at colour depths of 1 bit, 8 bits and 24 bits?

    Model answer

    1 bit gives 2¹ = 2 colours, normally black and white. 8 bits give 2⁸ = 256 colours. 24 bits give 2²⁴ = 16 777 216 colours, usually 8 bits each for red, green and blue.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

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

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

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

Every question in Fundamentals of Data Representation, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

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