Comprehensive Introduction to Computer Graphics and Raster Scan Technologies
Explore fundamentals of computer graphics, including applications, standards, color models, GUI, raster and random scan displays, and line drawing algorithms like DDA for effective image rendering.
1.1 Basics ofComputer Graphics
Definition
Computer Graphics is the branch of computer
science that deals with creating, storing,
manipulating, and displaying pictures, images,
and visual information using computers.
3.
• Example Applications
•Computer-Aided Design (CAD)
• Video Games
• Animation and Movies
• Medical Imaging
• Virtual Reality (VR)
• Scientific Visualization
• Education and Training
• Image Processing
• Graphical User Interfaces (GUI)
4.
Scope of ComputerGraphics
• Computer graphics is widely used in:
1. Engineering Design
• Building plans
• Machine parts design
• Circuit design
5.
2. Entertainment
• Movies
•Animation
• Gaming
3. Education
• Interactive learning
• Simulations
4. Medical Field
• MRI visualization
• CT scan analysis
6.
Graphics Standards
• Graphicsstandards ensure that graphical data is displayed
consistently across different systems.
• Common Graphics Standards
1. GKS (Graphics Kernel System)
• First international graphics standard.
• Device-independent.
7.
2. PHIGS (Programmer'sHierarchical Interactive Graphics
System)
• Supports 3D graphics.
• Interactive graphics applications.
3. OpenGL
• OpenGL
• Open-source graphics library.
• Used for 2D and 3D graphics.
4. DirectX
• Microsoft DirectX
• Developed by Microsoft.
• Mainly used for gaming applications.
8.
• Shapes inComputer Graphics (Basic graphical objects):
• Point
• A single pixel location. Example:(10,20)
• Line
• Connects two points.
• Circle
• All points at equal distance from center.
• Rectangle
• Four-sided polygon.
• Polygon
• Closed figure with multiple sides.
• Examples: Triangle ,Pentagon ,Hexagon
9.
Colors in ComputerGraphics
• Color is represented through intensity values.
• RGB Model
• Most common color model.
• R = Red
• G = Green
• B = Blue
Color Interaction
• Colorinteraction refers to how colors affect each other when
displayed together.
• Example:
Black text on white background.
Harmony
Pleasant combination of colors.
• Example:
Blue and Green.
Brightness Effect
Nearby colors can appear lighter or darker.
12.
Graphical User Interface(GUI)
• A GUI allows users to interact using graphical elements.
Features of GUI
• Windows
• Display application content.
• Icons
• Represent files or programs.
• Menus
• List commands.
• Buttons
13.
• Advantages
• Easyto use
• User friendly
• Less typing required
• Faster interaction
14.
1.2 Raster Scanand Random Scan Display Devices
Raster Scan Display
Definition
• Raster scan display uses a matrix of pixels.
• The screen is scanned line by line from top to bottom.
Working
• Electron beam starts from top-left.
• Moves horizontally.
• Completes one line.
• Moves to next line.
• Repeats until bottom.
15.
Characteristics
• Pixel based
•Suitable for images
• Used in modern monitors
Advantages
• Realistic images
• Supports shading
• Supports color graphics
Disadvantages
• Requires more memory
• Lower line quality
Random Scan Display(Vector Display)
Definition
• Random scan displays draw only required lines.
• Beam moves directly between points.
Working
• Beam moves to starting point.
• Draws required line.
• Moves to next line.
Characteristics
• Line based
• Better line quality
• Less memory required
18.
Advantages
• High resolutionlines
• Smooth graphics
Disadvantages
• Cannot display realistic images
• Not suitable for complex scenes
19.
Raster Scan vsRandom Scan
Feature Raster Scan Random Scan
Method Pixel Based Line Based
Memory High Low
Image Quality Good for Pictures Good for Lines
Cost Low High
Speed Faster Slower
Used In Modern Monitors Vector Displays
36.
1.3 Line DrawingAlgorithms
• Line drawing algorithms determine pixels required to
display a line.
• Digital Differential Analyzer (DDA) Algorithm
37.
• Principle
• Aline is generated using incremental calculations.
• Given:
• (x1,y1)
(x2,y2)
• Calculate:
•
(increments)
• DDA Formula( digital differential analyzer)
What is aLine Drawing Algorithm?
• A Line Drawing Algorithm is a method used to determine
which pixels should be turned ON to display a straight line
on a computer screen.
• Since a computer screen is made up of tiny square pixels, it
cannot draw a perfectly continuous line. Instead, it lights up
the nearest pixels to form a line.
• There are two famous line drawing algorithms:
• Digital Differential Analyzer (DDA)
42.
What is DDAAlgorithm?
• Definition:
• The Digital Differential Analyzer (DDA) is an incremental
scan conversion algorithm that calculates intermediate
points between two endpoints using floating-point
arithmetic.
• It works by increasing one coordinate step by step and
calculating the corresponding coordinate using the slope of
the line.