Text Images Audio Binary
Text Images Audio Binary
text in binary
Images in binary
To convert images binary, each pixel has to he
converter to binary depending on the color, this
works with black and white images, where each
pixel would be given a value of 0 or 1, and the
type of data used to provide the information,
such as resolution and dimension, is called meta
data.
As you know, many pictures have many more
colors other than black and white, in this case,
each color has it's own binary value . Colors are
created by computer screens using the Red
Green blue color system which mixes those
three colors to produce other colors.
Text to binary
Number systems
In our daily lives we mostly use a denary number system. This is called a base-10
number system and uses the digits 0-9. The units in a denary number system are
ones, tens, hundreds and thousands. Each time the unit increases by the power of
10.
For example, the denary number 123 has:
The
reason
for using the symbols A-F for the denary numbers 10-15 is so only one symbol is
needed for the denary number in hexadecimal.
Hexadecimal Number System
Why is hexadecimal used in computer science?
Programmers often use hexadecimal when writing and analyzing computer programs. They do this
because it is easy for a human to read hexadecimal, rather than binary.
For example, if a programmer looked at a set of data that is stored in registers, as binary it could look
like this:
10011100101110111000111011100010111101011010
The programmer may be trying to find out if the data stored matches the correct data which should be:
10011100101110111001011011100010111101011010
At a glance, it is difficult to see whether the two values match or if an error has occurred.
If that stored data is represented in hexadecimal it would be:
9CBB8EE2F5A
It is much easier to see that the data does not match, and the programmer can identify
that an error has occurred.
Binary Addition:
Example:
10010100 and 00011110.
Binary Manipulation
Binary Addition:
Example:
10010100 and 10011110.
Binary Manipulation