0% found this document useful (0 votes)
3 views

Text Images Audio Binary

Uploaded by

f9415457
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Text Images Audio Binary

Uploaded by

f9415457
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Images, audio,

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:

Binary Number System


Number systems
Computers use a binary number system.
This is called a base-2 number system and uses the digits 0 and 1.
The units in a binary number system increase by the power of 2.
Hexadecimal Number System
Number systems
Hexadecimal is also a number system. Humans can
use hexadecimal, but computers cannot process it. Like
denary numbers, hexadecimal numbers also need to be converted
to binary to be processed by a computer.

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

Comparing it to the correct value that should be:


9CBB96E2F5A

It is much easier to see that the data does not match, and the programmer can identify
that an error has occurred.

Benefits of Using Hexadecimal

• Hexadecimal is a shorter way of representing binary, so it takes up less space


on the computer screen or piece of paper.
• Hexadecimal is easier for a programmer to read, write and
understand.
• Hexadecimal is easier to debug and locate errors in data.
Binary Manipulation

Binary Addition:

Example:
10010100 and 00011110.
Binary Manipulation

Binary Addition:

Example:
10010100 and 10011110.
Binary Manipulation

Logical Binary Shifts:


Another process than can occur with binary numbers that are stored in a register is called a
logical binary shift. This kind of shift can move the binary values in the number to the left or to
the right.
If a logical binary shift to the left is performed on the binary number, each value in the binary
number is moved one place to the left.
Binary Manipulation

Logical Binary Shifts:


If a logical shift to the right is performed on the binary number, each value in the binary number is
moved one place to the right.
Playground Time
🤩🤩
CREDITS: This presentation template was
created by
Slidesgo, and includes icons by Flaticon, and
infographics & images by Freepik
Thanks
CREDITS: This presentation template was created
by
Slidesgo, and includes icons by Flaticon, and
infographics
& images by Freepik

You might also like