SlideShare a Scribd company logo
1 of 11
 What are graphics?
 Simply they are the images them selves
 How can we represent an image in computer?
 Image is a collection (2D array) of pixels, each
pixel represents a color that is a combination of
Red, Green and Blue colors (RGB system)
 Pixel values may range from 0 to 255
 Graphics system
 S/W: computerized programmes for images
manipulation and control
 H/W: for displaying pixels (CRT, LCD, ...)
 Sequence of identical frames that differ only
on the position of the moving object
 Example:
 To draw a man waving his hand, we draw a
sequence of identical frames in which all body
parts are in-variant except the hand
1. Initialize
2. Update positions
3. Draw
4. Go to step no. 2
 STAR
 STAR
 STAR
 Operating systems provide services to
programmers
 These services can be, opening and reading
from a file, drawing pixels, moving pixels,...
Etc (services are called system calls)
 API (Application Programming Interface) is a
set of built-in functions that provides access
to system calls
 Examples:
 Win 32 API for windows systems
 Posix API for POSIX-based systems (Unix,
Linux,...)
 #include <windows.h>
 One library of those who exist in Win 32 API
 Here We are interested in only one data type
and one function
 COORD point;
 point.X = 10;
 point.Y = 10;
 SetConsoleCursorPosition
(GetStdHandle(STD_OUTPUT_HANDLE), point);
 Draw a star that moves on all the screen,
given that max console width is 80 pixels and
max height is 15 pixels
 Draw an empty square that fits the console
boundaries
 Main map
 Moving snake
 Snake collision with console boundaries
 Food
 Increasing snake length
 Snake collision with it self
 Score
 Speed
 User Interface
 Files – Highest Scores

More Related Content

What's hot

Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics Introduction
Ghaffar Khan
 
Application of computer graphics and input devices
Application of computer graphics and input devicesApplication of computer graphics and input devices
Application of computer graphics and input devices
Mani Kanth
 
P1 powerpoint presentation
P1 powerpoint presentationP1 powerpoint presentation
P1 powerpoint presentation
AishahBegum
 
Computer Graphics Applications
Computer Graphics ApplicationsComputer Graphics Applications
Computer Graphics Applications
Saravana Priya
 

What's hot (14)

Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics Introduction
 
Unit-1 basics of computer graphics
Unit-1 basics of computer graphicsUnit-1 basics of computer graphics
Unit-1 basics of computer graphics
 
lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)
 
Application of computer graphics and input devices
Application of computer graphics and input devicesApplication of computer graphics and input devices
Application of computer graphics and input devices
 
P1 powerpoint presentation
P1 powerpoint presentationP1 powerpoint presentation
P1 powerpoint presentation
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Matlab
MatlabMatlab
Matlab
 
COMPUTER GRAPHICS AND MULTI MEDIA SOFTWARE LIST
COMPUTER GRAPHICS AND MULTI MEDIA SOFTWARE LISTCOMPUTER GRAPHICS AND MULTI MEDIA SOFTWARE LIST
COMPUTER GRAPHICS AND MULTI MEDIA SOFTWARE LIST
 
Graphics hardware and introduction to Raster display system
Graphics hardware and introduction to Raster display systemGraphics hardware and introduction to Raster display system
Graphics hardware and introduction to Raster display system
 
unit-1-intro
 unit-1-intro unit-1-intro
unit-1-intro
 
Introduction to computer graphics
Introduction to computer graphicsIntroduction to computer graphics
Introduction to computer graphics
 
Computer Graphics Applications
Computer Graphics ApplicationsComputer Graphics Applications
Computer Graphics Applications
 
lecture4 raster details in computer graphics(Computer graphics tutorials)
lecture4 raster details in computer graphics(Computer graphics tutorials)lecture4 raster details in computer graphics(Computer graphics tutorials)
lecture4 raster details in computer graphics(Computer graphics tutorials)
 
Ec section
Ec section Ec section
Ec section
 

Viewers also liked (7)

Bảng báo giá dòng sản phẩm Questek One
Bảng báo giá dòng sản phẩm Questek OneBảng báo giá dòng sản phẩm Questek One
Bảng báo giá dòng sản phẩm Questek One
 
Hd cấu hình router không dây TL WR740N
Hd cấu hình router không dây TL WR740NHd cấu hình router không dây TL WR740N
Hd cấu hình router không dây TL WR740N
 
Hdsd 6204
Hdsd 6204Hdsd 6204
Hdsd 6204
 
Preserve rice
Preserve ricePreserve rice
Preserve rice
 
I phone v1.2_e
I phone v1.2_eI phone v1.2_e
I phone v1.2_e
 
Ceh v5 module 12 web application vulnerabilities
Ceh v5 module 12 web application vulnerabilitiesCeh v5 module 12 web application vulnerabilities
Ceh v5 module 12 web application vulnerabilities
 
Ceh v5 module 11 hacking webservers
Ceh v5 module 11 hacking webserversCeh v5 module 11 hacking webservers
Ceh v5 module 11 hacking webservers
 

Similar to Graphics

Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1
Praveen Kumar
 
3rd 3DDRESD: Red Line Overview
3rd 3DDRESD: Red Line Overview3rd 3DDRESD: Red Line Overview
3rd 3DDRESD: Red Line Overview
Marco Santambrogio
 

Similar to Graphics (20)

computer Graphics
computer Graphics computer Graphics
computer Graphics
 
A review on image processing
A review on image processingA review on image processing
A review on image processing
 
YCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxYCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptx
 
Introduction to Computer Graphics.pptx
Introduction to Computer Graphics.pptxIntroduction to Computer Graphics.pptx
Introduction to Computer Graphics.pptx
 
A Gesture Based Digital Art with Colour Coherence Vector Algorithm
A Gesture Based Digital Art with Colour Coherence Vector AlgorithmA Gesture Based Digital Art with Colour Coherence Vector Algorithm
A Gesture Based Digital Art with Colour Coherence Vector Algorithm
 
Lecture 08
Lecture 08Lecture 08
Lecture 08
 
foedumed:Computer graphics 11_16
foedumed:Computer graphics 11_16foedumed:Computer graphics 11_16
foedumed:Computer graphics 11_16
 
Computer graphics notes
Computer graphics notesComputer graphics notes
Computer graphics notes
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1
 
unit1_updated.pptx
unit1_updated.pptxunit1_updated.pptx
unit1_updated.pptx
 
multimedia technologies Introduction
multimedia technologies Introductionmultimedia technologies Introduction
multimedia technologies Introduction
 
Introduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxIntroduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptx
 
Fundamentals Image and Graphics
Fundamentals Image and GraphicsFundamentals Image and Graphics
Fundamentals Image and Graphics
 
Software
SoftwareSoftware
Software
 
Mutimedia
MutimediaMutimedia
Mutimedia
 
Noise recognition in digital image
Noise recognition in digital imageNoise recognition in digital image
Noise recognition in digital image
 
Noise recognition in digital image
Noise recognition in digital imageNoise recognition in digital image
Noise recognition in digital image
 
3rd 3DDRESD: Red Line Overview
3rd 3DDRESD: Red Line Overview3rd 3DDRESD: Red Line Overview
3rd 3DDRESD: Red Line Overview
 
Introduction to Computer graphics
Introduction to Computer graphicsIntroduction to Computer graphics
Introduction to Computer graphics
 
Image processing in MATLAB
Image processing in MATLABImage processing in MATLAB
Image processing in MATLAB
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Graphics

  • 1.
  • 2.  What are graphics?  Simply they are the images them selves  How can we represent an image in computer?  Image is a collection (2D array) of pixels, each pixel represents a color that is a combination of Red, Green and Blue colors (RGB system)  Pixel values may range from 0 to 255  Graphics system  S/W: computerized programmes for images manipulation and control  H/W: for displaying pixels (CRT, LCD, ...)
  • 3.  Sequence of identical frames that differ only on the position of the moving object  Example:  To draw a man waving his hand, we draw a sequence of identical frames in which all body parts are in-variant except the hand
  • 4. 1. Initialize 2. Update positions 3. Draw 4. Go to step no. 2
  • 8.  Operating systems provide services to programmers  These services can be, opening and reading from a file, drawing pixels, moving pixels,... Etc (services are called system calls)  API (Application Programming Interface) is a set of built-in functions that provides access to system calls  Examples:  Win 32 API for windows systems  Posix API for POSIX-based systems (Unix, Linux,...)
  • 9.  #include <windows.h>  One library of those who exist in Win 32 API  Here We are interested in only one data type and one function  COORD point;  point.X = 10;  point.Y = 10;  SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE), point);
  • 10.  Draw a star that moves on all the screen, given that max console width is 80 pixels and max height is 15 pixels  Draw an empty square that fits the console boundaries
  • 11.  Main map  Moving snake  Snake collision with console boundaries  Food  Increasing snake length  Snake collision with it self  Score  Speed  User Interface  Files – Highest Scores