Graphics and Multimedia Session 13 Mata kuliah: M0874 – Programming II Tahun: 2010.

Slides:



Advertisements
Similar presentations
Nov 2005 MSc Slide 1 - Another Example of a Structural Pattern Alternative way of adding Functionality to an existing class (alternative to a derived class)
Advertisements

Chapter 9 Color, Sound and Graphics
COMPUTER PROGRAMMING I Objective 8.03 Apply Animation and Graphic Methods in a Windows Form (4%)
JAVA API (GUI) Subject:T0934 / Multimedia Programming Foundation Session:1 Tahun:2009 Versi:1/0.
Macromedia Director 8 Foundation Level Course. What is Director? Director is a challenging program for creating animation and multimedia productions for.
“Computers and Creativity”
Arrays Session 05 Mata kuliah: M0874 – Programming II Tahun: 2010.
Graphics 2D 1 Subject:T0934 / Multimedia Programming Foundation Session:6 Tahun:2009 Versi:1/0.
MULTIMEDIA DEVELOPMENT 4.3 : AUTHORING TOOLS. At the end of the lesson, students should be able to: 1. Describe different types of authoring tools Learning.
User Interface Programming in C#: Graphics
IEG3080 Tutorial 3 Prepared by Ryan. Outline Object Oriented Programming Concepts Encapsulation Inheritance Polymorphism Delegation Course Project.
1 L45 Multimedia: Applets and Applications. 2 OBJECTIVES  How to get and display images.  To create animations from sequences of images.  To create.
Graphics Programming. In this class, we will cover: The difference between AWT and Swing Creating a frame Frame positioning Displaying information in.
Text and Image Pertemuan 01 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
 Pearson Education, Inc. All rights reserved Multimedia: Applets and Applications.
Graphics and Multimedia. Outline Introduction Graphics Contexts and Graphics Objects Color Control.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Introduction to Computer Graphics
Graphics and Multimedia. Introduction The language contains many sophisticated drawing capabilities as part of namespace System.Drawing and the other.
Graphics Images – PictureBox control Drawing graphics - Graphics object Multimedia controls PictureBox control Image property – select image Choose how.
1 Chapter 26 D&D – Graphics Outline 26.1 Introduction 26.3 Graphics Contexts and Graphics Objects 26.4 Color Control 26.5 Font Control 26.6 Drawing Lines,
Graphics and Multimedia In visual Studio. Net (C#)
Lecture Set 13 Drawing Mouse and Keyboard Events Part A - Drawing.
Lesson 17 Enhancing Presentations with Multimedia Effects
Graphics and Multimedia. Outline Introduction to Multimedia Loading, Displaying and Scaling Images Windows Media Player Adding a Flash Movie Microsoft.
Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering.
Chapter 11-Multimedia Authoring Tools. Overview Introduction to multimedia authoring tools. Types of authoring tools. Cross-platform authoring notes.
Computer Programming and Basic Software Engineering 9 Building Graphical User Interface A Brief Introduction to GDI+ S.R.G. Fraser, Pro Visual C++/CLI.
1 Windows Graphics. 2 Objectives You will be able to Use the Windows GDI+ to draw arbitrary figures and text on a Windows form. Add a handler for the.
1 Graphical User Components (II) Outline JTextArea Creating a Customized Subclass of JPanel JPanel Subclass that Handles Its Own Events Windows: Additional.
 2005 Pearson Education, Inc. All rights reserved Multimedia: Applets and Applications.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
Object Oriented Programming Graphics and Multimedia Dr. Mike Spann
Introduction to Flash. Topics What is Flash? What can you do with it? Simple animation Complex interactive web application, such as an online store. Starting.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Object-Oriented Programming Polymorphism Session 07 Mata kuliah: M0874 – Programming II Tahun: 2010.
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
Adobe Flash CS4 – Illustrated Unit A: Getting Started with Adobe Flash.
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
16.9 Introduction to Multimedia Visual Basic offers many convenient ways to include images and animations in programs Computing field decades ago mainly.
Chapter 8B Graphics and Multimedia. 8B-2 Graphic File Formats Bitmapped images –Most common image type –Also called raster images –Image is drawn using.
Graphics and Java2D Chapter Java Coordinate System Origin is in _____________ corner –Behind title bar of window X values increase to the ________.
1 A Basic Introduction to Flash. Outline What is a flash? Macromedia Flash MX 2004 Flash concepts Flash Demos Conclusion Additional help 2.
Graphics and Multimedia. OUTLINE Font Control Drawing Lines, Rectangles and Ovals Drawing Arcs Drawing a General Path.
Ms. Tracy MODULE 1- LESSON 7. BELL RINGER What are the primary functions of a word-processing program?
Credit:  Multimedia has been used in many aspects in our lives, for example in the field of business, entertainment.
GDI +. Graphics class's methods System.Drawing Graphics Objects.
1 Lesson 7 Software Fundamentals Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Graphics Basic Concepts 1.  A graphic is an image or visual representation of an object.  A visual representation such as a photo, illustration or diagram.
Graphical User Interface Concepts - Part 1 Session 08 Mata kuliah: M0874 – Programming II Tahun: 2010.
PowerPoint Computer Solutions 1. Multimedia A powerful blend of text, graphics, sound, animation, and video on your computer.  Multimedia is an effective.
10/20/2005week71 Graphics, mouse and mouse motion events, KeyEvent Agenda Classes in AWT for graphics Example java programs –Graphics –Mouse events –Mouse.
(PART II) Graphics and Multimedia. Font Control Font s  After a Font is created, its properties cannot be modified  Programmers must create a new Font.
Graphics and Multimedia 2 Lecture 8. OUTLINE Font Control Drawing Lines, Rectangles and Ovals Drawing a General Path.
(PART II) Graphics and Multimedia 11/02/1437 Lect6 (Part 2)
Introducing Macromedia Flash 8
Flash Interface, Commands and Functions
Graphics and Multimedia
IMAGES.
Computer Programming I
CHAPTER 8 Multimedia Authoring Tools
Graphics and Multimedia
Drawing Mouse and Keyboard Events Part A - Drawing
ThS. Nguyễn Hà Giang Khoa CNTT - Hutech
CASE Tools Graphical User Interface Programming Using C#
Lecture 9 GUI and Event Driven CSE /16/2019.
Inheritance in Graphics
Graphics and Multimedia
Presentation transcript:

Graphics and Multimedia Session 13 Mata kuliah: M0874 – Programming II Tahun: 2010

Bina Nusantara University 3 Outline Materi Introduction Graphics Contexts and Graphics Objects Drawing in C# Introduction to Multimedia

Bina Nusantara University 4 Introduction C# supports graphics that enable programmers to enhance their Windows applications visually. Graphics, video, sound, and printing are the hallmarks of a traditional rich client on the Microsoft Windows operating system.

5 Graphics Contexts and Graphics Objects A C# graphics context represents a drawing surface that enables drawing on the screen. A Graphics object manages a graphics context by controlling how information is drawn. Graphics object contain methods for drawing, font manipulation, color manipulation and other graphics- related actions. Every windows application that derives from class System.Windows.Forms.Form inherits a virtual OnPaint event handler where most graphics operations are performed.

Bina Nusantara University 6 Graphics Contexts and Graphics Objects The argument to the OnPaint method include a PaintEventArgs object from which we can obtain a Graphics object for the control. The OnPaint mehtod triggers the Control’s Paint event. To override the inherited OnPaint mehtod, use the following method definition: protected override void OnPaint ( PaintEventArgs e ) Extract the incoming Graphics object from the PaintEventArgs argument: Grapics graphicsObject = e.Graphics;

Bina Nusantara University 7 Graphics Contexts and Graphics Objects

Bina Nusantara University 8 Creating a Pen Example, create red pen that is 5 pixels wide as follows:

Bina Nusantara University 9 Creating a Pen Once a Pen object has been created other properties may be changed. Example, the DashStyle property can be modified to change the style of line (i.e Dash, DashDot, DashDotDot, Dot, Solid or Custom). Properties such as the color and width may similarly be changed after a Pen has been created:

Bina Nusantara University 10 Drawing Lines Lines are drawn in C# using the DrawLine() method of the Graphics Object.

Bina Nusantara University 11 Drawing Squares and Rectangles

Bina Nusantara University 12 Drawing Ellipses and Circles

Bina Nusantara University 13 Drawing Text

Bina Nusantara University 14 Introduction to Multimedia C# offers many convenient ways to include images and animations in programs. Multimedia programming is an entertaining and innovative field, but one that presents many challenges. Multimedia applications demand extraordinary computing power.

Bina Nusantara University 15 Multimedia Using Visual Studio.NET and C#, programmers can create applications that use components such as Windows Media Player and Microsoft Agent. The Windows Media Player allows programmers to create applications that can play multimedia files. Microsoft Agent is a technology that allows programmers to include interactive animated characters in their applications.

Bina Nusantara University 16 References phics_in_C_Sharphttp:// phics_in_C_Sharp