Beruflich Dokumente
Kultur Dokumente
Lecture #3
GRAPHICS
1
…….And now for
Introduction to Graphics
2
Lecture 3 Overview
1. Intro to Graphics
Digitization
Binary System
Pixels
Color Coding & Models
Break
Intro to Text
Bitmap vs. Vector Graphics
Image Resolution
Image Bit Depth
File Formats
Graphics Software
Using FTP – Secure Shell
3
Which would you rather use to learn
about the water cycle?
4
Intro to Graphics
We rely on images for
Information
Explanations
Entertainment
VISUAL APPEAL
5
Visual Appeal
Professional
Layout Out
LABS:
• How to create the graphics
• Learn pkg and tools to change the
effects
LECTURES
• But need to know the concepts
6
Intro to Graphics: Originate?
7
How does a computer represent numbers and
words and images and sound?
How does a computer represent numbers?
How does a computer represent words?
How does a computer represent images?
How does a computer represent sound?
Convert
◦ Words to binary
◦ Images to binary
◦ Sound to binary
◦ Movies to binary
8
What is Digitization ?
•Process of translating a piece of information (text, images, sound,
video etc) into binary bits. ( Binary Digit)
(because that’s what computers “understand/speak”)
9
How many numbering systems are there?
Binary (2 Binary Digits/ BITS)
0,1,10,11,100,101, 111,1000
10
How many items can we represent with Binary Bits?
• So we say
1 bit allows for 2 colours (21 2)
12
How are Images Coded?
For Gray Levels
13
How are Images Coded?
For Gray Levels
4 bits 24 16 grey shades
0000, 0001,0010, 0100, 1000 ……
14
http://en.wikipedia.org/wiki/Color_depth#Direct_color
What will it look like?
http://www.modernimaging.com/bit_depth.htm
# of bits
2 1 = 2 shades 2 4 = 16 shades
15
So how many things can we represent with the
binary system
• Measurement for each bit is based on
Binary system (base 2)
• 1 Bit is either “0” or “1”
Formula is:
(x bits) 2x = y values
16
So how many things can we represent with the
binary system
2x = y values = # of combinations Relating bits with
= Maximum number of colors available
color combinations
to assign to a pixel to represent image for an image
17
Digitizing: Converting Analog to Digital
Conversion is a 2 step process:
Consider digitizing an image, sound,
video, animation, text etc... And
storing it on the computer
“Thing” means
Step 1: ___________ image, sound,
How often do I take a sample video, animation,
(measurement) to represent the “thing” text
How many parts will I break the
“thing” up into)
Step 2: ___________
How many discrete values will I use
to represent “each part” of the “thing”
18
Sampling for Images
Sampling
How many parts (pixels) will I break the image up into?
• Represented by a
grid (column/rows) of
squares called pixels
(Picture elements)
• Pixel is _________ image
component and thus shows
the smallest detail
19
Sampling for Images
Original
Image
If I represent
this image with
4 samples
(= 4 pixels?)
20
Sampling for Images
If I represent this
image with around
64 samples (pîxels)
8 rows x 8 cols?
If I represent this
image
7500 samples?
75 rows x 100 cols
Trend: The more
samples taken, the
_____________
the picture
21 becomes
Quantizing for Images
Quantizing How many discrete values (bits) will I
use to represent each pixel
represents the ____combinations
• Each pixel is given a
numerical value that
represents the
corresponding
colour
• Use binary
measurement scale
• 0,1 = 21
• 00,01,10,11 = 22
• 000, 001, 010 .. =23
22
Quantizing for Images • Each pixel is given a
numerical value that
How are Colors Coded? represents the
corresponding colour
23
Quantizing for Text (Letters/Punctuation)
How many bits do we need to represent text?
24
So….. How is color handled?
25
http://www.sketchpad.net/basics4.htm
Color Models
Used for _______ Used for __________
_________ Model (CMYK)
___________ Model (RGB):
•Cyan, magenta, yellow
-Primary colors are Red, Green, Blue
•Uses Printing Ink - when
-“adding” light to a black applied to paper removes
background(monitor) in order to obtain (“subtracted”) from a white
color shades background
-Brighter than CMYK •Commercial print is built on
CMYK plates and inks.
26
Did you know?
Why use RGB rather than CMYK model for web?
Since cathode ray tube devices, such
as computer monitors, display color
with red, green and blue light,
this is the color system of the Web.
RGB color
The red, green, and blue (RGB) color
system can represent a large portion of
the color spectrum by mixing these
three primary colors on a monitor
http://en.wikipedia.org/wiki/Color_depth#Direct_color
27 http://www.modernimaging.com/bit_depth.htm
How are Colors Coded?
“True color”
Uses 24 bit color representation
= 224 = ________colors
28
RGB Notation
• Each pixel is represented by
3 values
RGB Syntax:
Each value ranges from 0 – 255
• 0 represents ___________
• 255 represents _________
29
RGB Notation
Red = <255, 0, 0>
Green = <0,255,0>
Blue = <0, 0, 255>
White = <255,255,255>
Black = <0,0,0>
What does it mean:
• 256 shades of red = 28 (8 bits=1 byte)
• 256 shades of green = 28 (8 bits=1 byte)
• 256 shades of blue = 28 (8 bits=1 byte)
31
http:/www.christiansitehosting.co
m/Hexadecimal%20Color%20Codin
32 g%20Chart.gif
http://www.321webmaster.com/hex-to-rgb.php
33
Question
Does anyone know approximately how many
colours the human eye can discern (detect)?
34
Watch this
35
Types of Graphics
Bitmap or Vector
36
Types of Graphics - Bitmap
37
Types of Graphics - Bitmap
Bitmap Graphics Images from
If you start with a small image scanners,
(100 x 100 px) cameras etc
Assumption: As the image is made
larger by resizing (aka _________ ) From
not zooming larger to
• computer adds new pixels and smaller
guesses on the colour to colour the
new pixels (called __________) No
based on surrounding pixels distortion
• Squares become larger , edges
more jagged
• Quality decreases
• File size increase
Advantages of a small image on the web:
• Shorter time needed to display it on the
38 screen because file size is smaller
Types of Graphics – Vector
Vector Graphics
•Image is represented with lines and arcs that have
a _________ relationship
• describing the drawing of the shape
To draw a:
________ :- starting point, direction, length
39
Types of Graphics – Vector
It doesn’t matter what size the image is !!
Advantage:
Ideal for producing artwork which
frequently needs to be presented in
different sizes or colors.
Examples?
40
So why do we need
different graphics software?
Vector or Bitmapped?
Vector-based:
• Suitable for drawings that will be sized often
• Greater control and precision with free-hand tool
REMINDER:
• Display more accurately on screen/paper/billboards
(can be redrawn with accuracy without loss of quality) Vector-based
• Download faster because of .svg format is _______ file
(less info recorded smaller file) recording a
• Must use a “Draw “ program – draw and edit paths mathematical
• Adobe Illustrator or Macromedia FreeHand, relationship
Corel Draw
• Common formats: .eps,
.cdr.(CorelDraw)
.dwg (Autocad)
41 http://www.eastbywest.com/pub/vectorbitmap/
So why do we need
different graphics
software?
42 http://www.eastbywest.com/pub/vectorbitmap/
In this next section …
Now that we know what a pixel is
43
Resolution IMAGE
QUALITY
Image Resolution:
• The number of pixels per square inch
• Controlled through graphics pkg
when asked to create an image
44
Image Resolution
If Each pixel # of pixels
Resolution size per inch
100 ppi 1/100th inch 100 x100
300 ppi 1/300th inch 300 x 300
6 ppi 1/6th inch 6x6
3 ppi 1/3th inch 3x3
Which resolution
would give a finer,
less blocky result?
color of a pixel (ie 1 bit, 2 bits, 3 bits, etc). More bits you use
- more color info is stored
to describe the color of a
pixel
http://www.modernimaging.com/bit_depth.htm
# of bits
2 1 = 2 shades 2 4 = 16 shades
47
Image Bit Depth
Image Bit
Bits per Depth
Pixel: 1 (BPP) Bits per Pixel: 4 Bits per Pixel: 8
Maximum Colors: 2 Maximum Colors: 16 Maximum Colors: 256
• vector-based drawing programs allow • bitmap graphics tools are needed for
more flexibility when creating working with photos, scans, or
artwork that is to be resized or must other "realistic" images.
go through multiple edits.
• usually superior for final output of
• logos, for example, should be images for the Web or for many
created in illustration programs special effects to photos.
49
Graphics Software – Adobe Illustrator
Illustration
(Drawing
programs)
•work with
vector images
Examples:
•Adobe Illustrator
•CorelDraw
•Macromedia
Freehand
Photo/Image Editors
(Paint programs)
Examples:
• Adobe Photoshop
• Corel Photo-Paint
• Jasc Paint Shop Pro
51
Warm-up Questions
Question: How many things can you represent with a 5
bit depth (5 bits)?
52
Warm-up Questions
a) #FFFFFF 1. White
b) #00FF00 2. Black
c) #FAFAFA 3. Dark Gray
d) (0,0,255) 4. Light Gray
e) (0,0,0) 5. Medium Gray
f) (14,14,14) 6. Bright Green
g) (125,125,125) 7. Bright Blue
53
Next Lecture
• Capturing Digital Images via Scanning
and Digital Cameras
54