Consider black and white versus 1 and 0 (binary)
Data in computers is stored and transmitted as a series of ones and zeros (also known as Binary).
To store an image on a computer, the image is broken down into tiny elements called pixels. A pixel (short for picture element) represents one colour. An image with a resolution of 1024 by 798 pixels has 1024 x 798 pixels (817,152 pixels).
In order for the computer to store the image, each pixel is represented by a binary value. We call this representation of colours a “bit-plane”.
In a monochrome (two colour) image, like the example below, just 1 bit is needed to represent each pixel e.g. 0 for white and 1 for black.
Images are stored in scan lines. Each line is encoded from left to right, top to bottom. The image here would receive the following binary values:
NOW YOU TRY! Create a basic image in binary using the assigned doc from Google Classroom (Part 1 ONLY) labled "8 Bit Binary Imagery"
*Please be more creative than a line face (above) or simple smile face*
15 MIN WORKTIME
In th e"bit plane", each bit doubles the number of available colours i.e. 1-bit would give us 2 colours, 2-bits would give us 4 colours and 3-bits would give us 8 colours etc.
In an image that uses 4 colours, 2 bits are needed for each pixel. The following example uses two bits to store the following colours:
00 – White; 01 – Black; 10 – Yellow; 11 – Blue
Using the same 'code' logic, the code for this image looks like:
In order for the computer to interpret the image, the computer needs to know the following:
Colour depth – how many bits represent each pixel
Resolution - Width & Height (in pixels)
We call this extra piece of information “metadata”.
NOW YOU TRY! Complete Part 2 of the doc in Google Classroom (Part 2) labled "8 Bit Binary Imagery"
*You MUST use 4 OR MORE colors and determine what your color/binary codes will be*
REST OF CLASS IS WORKTIME
This is due at the end of class.