Chapter 7 Introduction to High-Level Language Programming.

Slides:



Advertisements
Similar presentations
BGI graphics library And Visual Studio.
Advertisements

Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 6.
Computer Graphics Tz-Huan Huang National Taiwan University (Slides are based on Prof. Chen’s)
Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 7.
CP411 Computer Graphics, Wilfrid Laurier University Introduction # 1 Welcome to CP411 Computer Graphics 2012 Instructor: Dr. Hongbing Fan Introduction.
In the name of God Computer Graphics Bastanfard.
Image Maps and Graphics Internet Basics and Far Beyond! Mrs. Wilson.
Output Primitives Computer Graphics.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, Java Version, Third Edition.
C++ Graphics Primitives April 15th. void clearscreen(int c) –clear the screen to background color c –If c = 1 screen black.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics? Ed Angel Professor of Computer Science, Electrical and Computer.
Introduction to OpenGL. What is OpenGL OpenGL is a low-level software interface to graphics hardware No commands for performing windowing tasks or obtaining.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Computer Graphics Hardware and Software Lecture Notes, CEng 477.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
Chapter 1 CSF 2009 Computer Abstractions and Technology.
1 Bitmap Graphics It is represented by a dot pattern in which each dot is called a pixel. Each pixel can be in any one of the colors available and the.
Slides adapted from: Bjarne Stroustrup, Programming – Principles and Practice using C++ Chapter 12 A display model Hartmut Kaiser
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
Invitation to Computer Science 5 th Edition Chapter 9 Introduction to High-Level Language Programming.
BY Kamran Yousaf Computer Graphics & Animation. BY Kamran Yousaf Contents Introduction Usage, Application & Advantages Video Display Devices Output Devices.
1 CMT Fundamentals of Computer Graphics Revision Dr. Xiaohong Gao BG---Room 2C23 Week 11.
Chapter 2 Getting Started: Drawing Figures. The Framebuffer Lecture 2 Fri, Aug 29, 2003.
Visual Basic 2005 SCOPE Visual Basic Hands-on Training.
Visual BASIC 1 Introduction
INTRODUCTION INTRODUCTION Computer Graphics: As objects: images generated and/or displayed by computers. As a subject: the science of studying how to generate.
1 Graphics CSCI 343, Fall 2015 Lecture 1 Introduction to Graphics Read: Chapter 1 of textbook.
COMPUTER GRAPHICS Hochiminh city University of Technology Faculty of Computer Science and Engineering CHAPTER 01: Graphics System.
Computer Graphics I, Fall : What is Computer Graphics?
Institute for Visualization and Perception Research 1 © Copyright 2000 Haim Levkowitz Introduction (Foley & Van Dam Ch 1) Uses of computer graphics … Some.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Character Generation.
1 Computer Graphics Week2 –Creating a Picture. Steps for creating a picture Creating a model Perform necessary transformation Lighting and rendering the.
CGMB214: Introduction to Computer Graphics
Invitation to Computer Science 5 th Edition Chapter C++ Programming in C++
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Introduction to OpenGL  OpenGL is a graphics API  Software library  Layer between programmer and graphics hardware (and software)  OpenGL can fit in.
Applets Yong Choi School of Business CSU, Bakersfield.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 What is Computer Graphics?
Graphics: Conceptual Model Real Object Human Eye Display Device Graphics System Synthetic Model Synthetic Camera Real Light Synthetic Light Source.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
Documenting a function. Documenting a function definition We have a template for information that we need you to put at the top of each function - if.
1 Chapter 1: Graphics Systems and Models. 2 Applications of C. G. – 1/4 Display of information Maps GIS (geographic information system) CT (computer tomography)
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
Chapter 7 Introduction to High-Level Language Programming.
Graphics Graphics Korea University cgvr.korea.ac.kr Introduction to Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
1 INTRODUCTION TO COMPUTER GRAPHICS. Computer Graphics The computer is an information processing machine. It is a tool for storing, manipulating and correlating.
Computer Graphics Lecture 1. Books D. Hearn, M. P. Baker, "Computer Graphics with OpenGL", 3rd Ed., Prentice Hall, 2003, ISBN
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
Computer Graphics: An Introduction
Computer Software: Programming
Chapter I Digital Imaging Fundamentals
Chapter 8: Introduction to High-Level Language Programming
Programming Logic and Design Eighth Edition
Presentation transcript:

Chapter 7 Introduction to High-Level Language Programming

Graphical Programming Textual output vs. graphics Text-oriented OS: MS-DOS, VMS Graphical User Interface: Mac OS, MS Windows, X-Window Related subjects: Visualization of 3-D surface (Figure 7.30) Computer graphics Computer Aided Design (CAD), CAM

Graphic Primitives Modern computer terminals use bit mapped display. The screen is made up of picture elements (pixels). Black-and-white, gray scale display, color display The memory that stores the actual screen image is called a frame buffer. Refresh rate

Graphics Library Contains routines for: Drawing simple geometric shapes (lines, circles) Creating and selecting colors Displaying windows Pull-down menus buttons (0,0) (maxX, maxY)

Ex: Small Graphics Library 1. clearscreen(I) 2. moveto(x,y) 3. getmaxx() 4. getmaxy() 5. setcolor(I) 6. lineto(x,y) 7. rectangle(x1,y1,x2,y2) 8. circle(x,y,r) 9. writedraw(value,x,y) 10. getmouse(x,y)

Examples 1. Move to center of screen X=getmaxx(); Y=getmaxy(); moveto(X/2,Y/2); 2. Draw a line from (20,20) to (100,100) clearscreen(0); setcolor(1); moveto(20,20); lineto(100,100);

Creating a titled window Clearscreen(0); Setcolor(1); Rectangle(50,50,350,80); Rectangle(50,80,350,300); Moveto(50,60); Lineto(150,60); Moveto(50,70); Lineto(150,70); Moveto(250,60); Lineto(350,60); Moveto(250,70); Lineto(350,70); Writedraw(“Title”,180,70); Title

The Big Picture Software engineering Coding (implementation) is a small part of the software life cycle. May occupy only 10-20% of the total time spent by programmers and designers. What are the other important steps?

Software Development Cycle 1. Before implementation Feasibility study Problem specification Program design Algorithm selection or development, and analysis 2. Implementation Coding Debugging 3. After implementation Testing,verification and benchmarking Documentation Maintenance

Scaling Up Programs that students write in a first programming course may be a few hundred lines. Truly large software systems may contains millions of lines of code. Refer to Figure 7.35.