levo

Fundamentals of Data Representation

Bitmapped graphics

  • 2 things to know
  • Paper 2

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.

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.

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

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.

A driver is .
softwarehardwarestorage

Blank Blitz makes facts automatic

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

AThe integer 5 is 0101.
B0.75 is 1/2 + 1/4.
CThe fraction bits are 1100.

Build It gets the exam shape right

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

Head means the first single element of a non-empty list.
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 Fundamentals of 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.