From the course: Computer Science Principles: Digital Information

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Encoding images

Encoding images

From the course: Computer Science Principles: Digital Information

Start my 1-month free trial

Encoding images

- Documents with words contain individual characters. And each of those characters is encoded into a digital format, and is stored or transmitted using binary numbers. The same happens with images. But instead of characters, it is based on pixels. When you have an image, it is broken up into individual pixels. Each pixel defines the color that needs to be shown on the screen to render that pixel correctly. Images that are based on pixels are called bitmaps. Let's take this image for instance. It is divided into multiple rows and columns of pixels. Each pixel needs to store the value of three colors, red, green and blue, in that order. On a screen, each pixel actually has three emitters, one for each color, red, green and blue. When you store the values of each color, you are telling that unique pixel how bright to make each unique color inside. This is called RGB, and it is how most screens work and display graphics. Each of these pixels needs to store these three color values. One…

Contents