(PART III) Graphics and Multimedia 16/02/1437 Lect6 CT1411 1.

Slides:



Advertisements
Similar presentations
Microsoft® Small Basic
Advertisements

CHAPTER 20 CREATING SVG GRAPHICS. LEARNING OBJECTIVES How to embed a graphic stored within a.SVG file in an HTML page How to use the and tag pair to specify.
Graphics Chapter 16.  If you want to draw shapes such as a bar chart, a clock, or a stop sign, how do you do it?
Chapter 9 Color, Sound and Graphics
COMPUTER PROGRAMMING I Objective 8.03 Apply Animation and Graphic Methods in a Windows Form (4%)
Georgia Institute of Technology Drawing in Java – part 2 Barb Ericson Georgia Institute of Technology September 2005.
CSC1401 Drawing in Java - 2. Reminder from last class How do you save your modified picture? String filename = …; Picture stevePicture = new Picture(filename);
Graphics and Multimedia Session 13 Mata kuliah: M0874 – Programming II Tahun: 2010.
User Interface Programming in C#: Graphics
Chapter 7 Creating Graphics. Chapter Objectives Use the Pen tool Reshape frames and apply stroke effects Work with polygons and compound paths Work with.
1 L37 Graphics and Java 2D™ (2). 2 OBJECTIVES To use methods of class Graphics to draw lines,  rectangles,  rectangles with rounded corners,  three-dimensional.
Chapter 13 Graphics, Animation, Sound, and Drag-and-Drop Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
1 L38 Graphics and Java 2D™ (3). 2 OBJECTIVES In this chapter you will learn:  To understand graphics contexts and graphics objects.  To understand.
 2006 Pearson Education, Inc. All rights reserved Graphics and Multimedia.
ENDS 375 Foundations of Visualization Geometric Representation 9/30/04.
Multi-media graphics--JOUR 205 Vectors vs. bitmaps.
Graphics and Multimedia. Outline Introduction Graphics Contexts and Graphics Objects Color Control.
Graphics and Multimedia. Outline Drawing Polygons and Polylines Advanced Graphics Capabilities.
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,
Lecture Set 13 Drawing Mouse and Keyboard Events Part A - Drawing.
Vector Graphics Making custom images. Raster vs. Vector Graphics In computer graphics, a raster graphics image, or bitmap, is a dot matrix data structure.
Agenda For Feb Finish up Unit 3 Exercises on page Unit 4 Exercises on page 33. Question #2 3. Create a Happy Face Java Applet (due next class).
Java Software Solutions Lewis and Loftus Chapter 7 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphics -- Introduction The.
1 Graphical User Components (II) Outline JTextArea Creating a Customized Subclass of JPanel JPanel Subclass that Handles Its Own Events Windows: Additional.
C# Programming Lecture 4 “GDI+” PGL01/CSP/2006.
Graphics and Multimedia Part #2
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 28 - Java Graphics and Java2D Outline 28.1Introduction.
Chapter 28 - Java Graphics and Java2D Outline 28.1Introduction 28.2Graphics Contexts and Graphics Objects 28.3Color Control 28.4Font Control 28.5Drawing.
 Pearson Education, Inc. All rights reserved. 1 Ch 12 Graphics and Java 2D In this chapter you will learn:  To understand graphics contexts.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Lecture 15: Intro to Graphics Yoni Fridman 7/25/01 7/25/01.
Graphics & Java 2D Drawing Two Dimensional Shapes Controlling Fonts Controlling Colors.
General Purpose Packages GRAPHICS Chapter 5. General Purpose Packages Features of Graphics Packages Entering text Entering text Common tools Common tools.
SVG for Designers Tom Hoferek. Objectives Introduce SVG Illustrate its capabilities Demonstrate SVG in action Speculate, discuss, answer questions.
Lecture 5 Graphics Erick Pranata. » Graphics Overview » About GDI+ » Getting Started.
Tkinter Canvas.
Aim: What is Adobe Illustrator?. Adobe Illustrator is a vector based drawing program.
1 Graphic Device Interface (GDI). 2 Class Form A Form is a representation of any window displayed in your application. The Form class can be used to create.
Attributes of drawing elements
Merete S COLLEGEFACULTY OF ENGINEERING & SCIENCE Graphics ikt403 – Object-Oriented Software Development.
Graphics and Java2D Chapter Java Coordinate System Origin is in _____________ corner –Behind title bar of window X values increase to the ________.
Graphics and Multimedia. OUTLINE Font Control Drawing Lines, Rectangles and Ovals Drawing Arcs Drawing a General Path.
Images Part 11 dbg. 2 Images The form and several controls can display a number of different types of image files in the BackgroundImage Property. These.
V 1.0 Programming III. Graphical possibilities Simple graphics (shapes)
GDI +. Graphics class's methods System.Drawing Graphics Objects.
Georgia Institute of Technology Drawing in Java – part 2 Dr Usman Saeed Assistant Professor Faculty of Computing and Information Technology North Jeddah.
CPCS 391 Computer Graphics Lab One. Computer Graphics Using Java What is Computer Graphics: Computer graphics are graphics created using computers and,
Chapter 7 Introduction to High-Level Language Programming.
(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)
Graphics and Multimedia
12 Graphics and Java 2D™.
Graphics and Multimedia
Graphics and Multimedia
JAVA 2 Design and programming of GUI
Miscellaneous Topics #6: Polygons GUI Components and Event Handlers
Exercise 28 - Skills Vector tools enable you to create perfectly formed shapes and lines of all sorts. What’s more the vector objects keep their shape.
ThS. Nguyễn Hà Giang Khoa CNTT - Hutech
Graphics -- Introduction
Graphic Editing Terms Cropping
GUI Graphics Chris North cs3724: HCI.
Graphics and Multimedia
2 types of scale factor problems
Graphics and Multimedia
Chapter 12 Graphics in Windows and the Web
CPT 450 Computer Graphics 3rd Lecture.
Presentation transcript:

(PART III) Graphics and Multimedia 16/02/1437 Lect6 CT1411 1

Outline Drawing Polygons and Polylines Advanced Graphics Capabilities 16/02/1437 Lect6 CT1411 2

Drawing Polygons and Polylines Polygons  Multisided shapes  Graphics methods used to draw polygons  DrawLines, DrawPolygon, and FillPolygon 16/02/1437 Lect6 CT1411 3

Drawing Polygons and Polylines 16/02/1437 Lect6 CT1411 4

Example 16/02/1437 Lect6 CT1411 5

16/02/1437 Lect6 CT1411 6

Advanced Graphics Capabilities Visual Basic offers many additional graphics capabilities Examples  Brush hierarchy also includes:  HatchBrush, LinearGradientBrush, PathGradientBrush and TextureBrush  Additional graphics features  Dashed lines, thick lines, filling shapes with patterns, etc 16/02/1437 Lect6 CT1411 7

LinearGradientBrush LinearGradientBrush takes four arguments: Rectangle Two colors Constant from LinearGradientMode Examples Dim Rec1 As New Rectangle(5,5,25,20) Dim LGBrush As New LinearGradientBrush(Rec1, Color.White, Color.Blak, LinearGradientMode.ForwardDiagonal) 16/02/1437 Lect6 CT1411 8

TextureBrush TextureBrush is a brush that fills the interior of a shape with an image rather than a solid color. TextureBrush takes Bitmap object as an argument. 16/02/1437 Lect6 CT1411 9

TextureBrush Bitmap Class Produce images in color and gray scale with a particular width and height. Used to work with images defined by pixel data. How to use…. Dim graphicsObject As Graphics = e.Graphics Dim BitmapVar As Bitmap = New Bitmap(width, height). Dim BrushVar As TextureBrush = New TextureBrush(BitmapVar) graphicsObject.FillRectangle(BrushVar, X, Y, width, height) 16/02/1437 Lect6 CT

16/02/1437 Lect6 CT

16/02/1437 Lect6 CT

16/02/1437 Lect6 CT

Lect6 CT /02/