3 Chapter 03 CS100 ARTS COmputer Graphics
3 Chapter 03 CS100 ARTS COmputer Graphics
©2023/2024
Textbook:
Introduction to Computer Graphics
Version 1.2, January 2018
David J. Eck
Hobart and William Smith Colleges
©2023/2024 3
Computer Graphics
q Graphics:
§ Graphics are visual
presentations on a
surface, such as a
computer screen.
§ Examples:
photographs, drawing,
graphics designs, maps,
engineering drawings,
or other images.
©2023/2024 4
Computer Graphics
What is Computer Graphics?
Pixel is the smallest element of picture.
Field of science concerned with
creation, manipulation of
geometric information using computer techniques.
It’s an art of drawing pictures, lines, charts,
triangles, etc. using computers with
the help of programming
And display those images on screens or
hardcopy devices.
Screensaver
©2023/2024 6
Computer Graphics
Interactive Computer Graphics: In this kind of computer graphics, the user
has complete control over the graphics image.
We can make two way of
communications between the
computer and the user.
Examples: 1. Video games;
2. Flight Simulator; 3. Virtual Reality
o Example 1: Video game controller
of any game, where the user can
give a series of commands, and
each command will generate
a graphical response from the
computer.
o By this way, the user make
a conversation or dialogue with
the computer.
©2023/2024 7
Computer Graphics
©2023/2024 8
Computer Graphics
Cont. to Interactive
Computer Graphics:
Remind you!... The user has
complete control over the
graphics image.
Example 3: Virtual reality is
a simulated 3D environment
that enables users to explore
and interact with a virtual
surrounding in a way that
approximates reality.
©2023/2024 9
Computer Graphics
Non-Interactive Computer Graphics:
In this kind of computer graphics, the user does not have any kind of control over
the graphics image.
In this case image is nearly the
product of static stored program,
and it will move or walk according
to the instructions of the written
program. Non-Interactive Computer Graphics
i.e., the images totally under the
control of program instructions not
under the user.
Example: Screensavers
©2023/2024 10
Computer Graphics
Applications of
Computer Graphics:
1. Presentation Graphics
2. Computer Art
3. Entertainment
(animation, games, …)
4. Computer Aided Design CAD
5. Education and Training
6. Visualization
(scientific and business)
7. Image processing
©2023/2024 11
Computer Graphics
Cont. to Applications of
Computer Graphics…
1. Presentation Graphics
Presentation graphics is used to
produce illustrations for reports
or generate slides for use with Gantt Chart:
projects. Used in the project management to
monitor and track the project activities
Commonly used to summarize
financial, statistical,
mathematical, scientific,
economic data for research
reports, managerial reports,
and customer information
statements.
o Examples: Bart charts,
Line graphs, Pie charts,
Surface graphs, Time chart
©2023/2024 12
Computer Graphics
Cont. to Applications of
o Pixel Paintbrush: It is the same
Computer Graphics… as the Photoshop
2. Computer Art
Includes artist’s paintbrush
programs, paint packages,
Computer Aided Design CAD
packages, and animation
packages.
These packages provides
facilities for designing object
shapes and specifying object
motions.
Examples:
• Paintings,
• Cartoon drawing,
• Product Advertisements,
• Logo Design. Logo Design Product Advertisements Cartoon Drawing
©2023/2024 13
Computer Graphics
Cont. to Applications of Computer
Graphics… o Picture painted electronically on
2. Cont. to Computer Art
Electronic painting
o Picture painted electronically on
o A graphic tablet (digitizer) using
a stylus
o Cordless, pressure sensitive stylus
o Cordless, pressure sensitive stylus o A graphic tablet (digitizer) using a stylus
©2023/2024 14
Computer Graphics
2. Cont. to Computer Art • Morphing function is commonly used in
movies, cartoons, advertisement, and
Morphing computer games.
o It is a graphics method in which one object is transformed into another.
o In this example, the human face is converted into
animal face using the morphing graphics
function.
• Morphing Algorithm
©2023/2024 15
Cont. to Applications of
Computer Graphics…
Computer Graphics
3. Entertainment
o Artificial
Movie Industry
Intelligence &
o Used in motion pictures, music videos, and television shows.
Movies
o Used in making of cartoons animation film.
Super Toy Teddy
©2023/2024 17
Computer Graphics
Cont. to Applications of
Computer Graphics… o Kids
5. Education and Training School
Flyer
Template
o Computer generated
models of physical are
used as educational aids
such as.
₋ Simulators for practice o Driving Simulator.
sessions or training of
ship captains
₋ Aircraft pilots
₋ Driving Simulator
©2023/2024 18
Cont. to Applications of
Computer Graphics…
Computer Graphics
6. Visualization
o Visualization is the process of representing data graphically and
interacting with these representations to gain insight into the data.
o What is data visualization?
o Scientific visualization
o Producing graphical
representation for
scientific, engineering,
and medical data sets.
o Business visualization is
used in connection with
data sets related to
commerce, industry and
other non-scientific areas.
©2023/2024 19
Computer Graphics
Cont. to Applications of Computer Graphics…
7. Image Processing
Image processing deals with capture images, cleaning up noisy and blurred images and
creating clear pictures, and other image manipulation.
Image
processing
includes more
than ten image
manipulations
as shown in the
side Figure.
©2023/2024 20
Computer Graphics
Image Processing…
Human
Image processing eye
deals with capture
images.
Image =
object +
Light +
Camera
Camera
man
©2023/2024 21
Computer Graphics
Reflected Light
The colours humans perceive are determined by nature of light reflected from
an object
For example:
if white light (contains all wavelengths) is shone onto green object it absorbs
most wavelengths absorbed except green wavelength (color)
White source
o Image is
collection of
pixels.
o Pixel is intensity
of light.
©2023/2024 22
Computer Graphics
Reflected Light:
The colors humans perceive
are determined by nature of
light reflected from an object
Examples…
©2023/2024 23
Computer Graphics
Image Processing…
Image processing
deals with cleaning
up noisy images.
©2023/2024 24
Computer Graphics
Image Processing…
Image processing
deals with cleaning
up blurred images .
©2023/2024 25
Computer Graphics
Image Processing…
Image processing
deals with
converting black Before After
& white image
into color image.
©2023/2024 26
Computer Graphics
Image Processing…
Image processing
deals with
converting color Before After
©2023/2024 27
Computer Graphics
Image Processing…
Image processing deals • A silhouette is the outline of an object seen
with detecting the or as if seen against the light
• The basic idea of silhouette photography is to
silhouette image. use a backlight to create a black outline of
your subjects.
©2023/2024 28
Computer Graphics
Image Processing…
Image processing deals A silhouette is the image of a person, animal,
object or scene represented as a solid shape
with detecting the of a single color
silhouette image.
Before After
©2023/2024 29
Computer Graphics
Image Processing…
Image processing deals with Silhouette photography adds a beautiful and
detecting the silhouette shadowy effect to any photo, shifting the focus
image. from the small details to the background while
creating drama and contrast.
©2023/2024 30
Computer Graphics
Image Processing…
Image processing
deals with
detecting the
outline image.
©2023/2024 31
Computer Graphics
Cont. to Image Processing…
Image processing deals with
converting image to avatars.
©2023/2024 32
Computer Graphics
Cont. to Image Processing…
Image processing deals with
converting image to avatars.
©2023/2024 33
Computer Graphics
Cont. to Image Processing…
Raster Image…
©2023/2024 34
Computer Graphics
Cont. to Image Processing…
Raster Image…
• A raster image is a digital
photography image.
Rows
pixels, viewable via a computer
display.
o Images produced from optical scanners
and digital cameras are raster graphics, as Columns
Format of raster
images…
• How to create GIF image
• Go to Animated GIF
Maker…
o https://ezgif.com/maker
©2023/2024 36
Computer Graphics
Cont. to Image Processing…
Vector images consist of shapes
like circles, rectangles, lines and
curves.
A vector image is a scalable
image made up of values
rather than pixels.
©2023/2024 37
Computer Graphics
Cont. to Image Processing…
Example: Vector images consist of shapes like circles, rectangles, lines and curves.
Converter the next drawing to a vector image.
1. Translate object
into cartesian
coordinate to
display the shape
within the positive
Quad.
©2023/2024 38
Computer Graphics
Cont. to Image Processing…
Raster Image Vector Image
Image VS Vector
Image…
©2023/2024 39
Computer Graphics
Images & Graphics…
Format of Graphics Images…
©2023/2024 40
Computer Graphics
Graphics packages or
software standards are o 1. Illustrator
used to create graphics
images…
o 2. After effect
Computer
Graphics
Programs for 2D…
o 3. Photo shop
©2023/2024 41
Computer Graphics
Cont. to Graphics packages or o 1. Maya
©2023/2024 42
Computer Graphics
Mobile Film Making…
Most people with a mobile device are using
smartphones, and the camera on modern
smartphones has improved so much that many
filmmakers are skipping the expensive camera
equipment and using their mobile cameras to
create great feature films.
Smartphone filmmaking makes filming
easier by allowing journalists to quickly
film and edits a video on the go.
©2023/2024 43
Computer Graphics
Cont. to Mobile Film Making…
Kind of films
shot on
smartphones
©2023/2024 44
Computer Graphics
Cont. to Mobile Film Making… Cairo Mobile Film Festival
©2023/2024 45
Samples of Questions
Q1. The raster image is not pixel-based graphics resolution dependent photos and web graphics.
a. True
b. False
Q2. The vector image is curve-based graphics resolution independent logos, icons, and type.
c. True
d. False
©2023/2024 46
Samples of Questions
Q5. The RGP is a light- based color model that stands for red, green, and pink.
a. True
b. False
Q6. Each RGB pixel in color image is saved in a computer storage using ______ byte(s).
c. one
d. Two
e. Three
f. four
Q7. The CMYK is a 4-color printing process that stands for cyan, magenta, yellow, and
key (black).
g. True
h. False
Q8. The CMYK is a 4-color image is saved in a computer storage using ________ byte(s).
i. one
j. Two
k. Three
l. four
©2023/2024 47
Questions: 1, 2, 3, 4, 5, 6, 7, 8
Q1 A B C D
Q2 A B C D
Q3 A B C D
Q4 A B C D
Model
Q5 A B C D
Answer Q6 A B C D
Q7 A B C D
Q8 A B C D
©2023/2024 48
Any Questions!
©2023/2024 49