Did you know that numbers can be used to represent an image online? If not, you’ve come to the right place to learn how to formulate this concept. This concept can also be called Binary Code. Within each pixel that makes up the image, there is a set of binary code numerals called ‘bits’ that combine to create a certain type of color. With binary code, we are labeling each pixel of an image with a numerical value that can represent it. For example, if an image consists of black and white, each pixel includes 8 bits, which is one byte. Black and white images are represented by 1’s and 0’s where black is considered 1 and white is considered 0. If an image has color, we can represent each pixel as either 11 or 00. Depending on how many colors are used within the image determines how many bits should be used in one pixel. For example, we can label 4 colors: red, green, blue, and black. We could pair the red color with 00, the green as 11, the black as 01, and the blue as 10. It’s seen that throughout this report, there must be different combinations for each color of an image.
Visit this website for a practice lesson: https://contrib.pbslearningmedia.org/WGBH/buac20/buac20-int-codeimage35/index.html

