Software System Components 1 Graphics

Size: px
Start display at page:

Download "Software System Components 1 Graphics"

Transcription

1 Software System Components 1 Graphics Shan He LECTURE 3 Introduction to Java 2D Graphics (II) 1.1. Outline of Lecture Review of what we learned Rendering Shapes 1.2. Review of what we learned Last lecture, we have learned how to use Java 2D classes to construct geometric primitives, e.g., lines, curves, rectangles, ellipses, polygons and areas. As we mentioned before, the rendering step, e.g., filling colour, is separated from the construction of geometric primitives. In this class, we will introduce how to do the rendering using Java Graphics2D class. We will give the theories behind rendering process in Lecture Rendering Shapes Graphics2D also provides more sophisticated control about how these text, shapes, or images appear on the screen. The Java 2D rendering process is controlled by the Graphics2D object and its state attributes, such as line styles, colour, and transformations. As we have seen before, these state attributes are global attributes, which will be applied to graphic objects when they are rendered. In Graphics2D, the collection of state attributes is called Graphics2D context. To render Graphics2D 1

2 2 SHAN HE, SOFTWARE SYSTEM COMPONENTS 1 GRAPHICS objects, e.g., shapes, the first step is to set up the Graphics2D context by adding different state attributes to it; and then call one of the Graphics2D rendering methods, such as draw or fill. Here are three state attributes we could add to the context for rendering: Paint attribute: Choose colours and patterns for shapes. Stroke attribute: Stroke width and how strokes are joined together. Rendering hints: Control quality and speed of rendering output. We will go into details of these state attributes Paint attribute This paint attribute, also called fill attribute, enables you to fill shapes with solid colors, gradients (gradient fill gradually combining two colors), and patterns (tiled image). This attribute is represented by a Paint object, which can be created from java.awt.paint interface. When you fill a Shape, the current Paint attribute of the Graphics2D object is used. We have seen how to fill colour in our previous examples. We can also use GradientPaint to fill an area with a colour gradient: GradientPaint(Point2D p1, Color colour1, Point2D p2, Color colour2, boolean cyclic) You need to specify two coordinates, p1 and p2, and two colours, colour1 and colour2, then the graphics engine smoothly interpolates between the two colours across the region between the two points. We can also set the gradient colour as cyclic or acyclic. If the gradient is cyclic then the points on the extended p1, p2 connecting line cycle back and forth between the colors colour1 and colour2. Here is an example of filling gradients GradientPaint int startx = 20; int starty = 20; Point2D p1 = new Point2D.Double(startX, starty); Point2D p2 = new Point2D.Double(startX+20, starty); g2.setpaint(new GradientPaint(p1, Color.black, p2, Color.white, true));

3 LECTURE 3. INTRODUCTION TO JAVA 2D GRAPHICS (II) 3 Figure 1. The ellipse on the left is filled with a single colour. The ellipse on the right is filled with a colour gradient from red to yellow. We can also use TexturePaint to fill a Shape with a tiled image by defining a BufferedImage and a Rectangle2D. The graphics engine maps the image into the rectangle (possible do some scaling if necessary) and then tiles the rectangle across the shape to be painted. Therefore, we need to create a BufferedImage object using java.awtimage.bufferedimage subclass. It worth mentioning that we could load a image, e.g., JPG file to BufferedImage. Please find out yourself how to do this. It might be useful for your continuous assessment Stroke attributes Stroke attributes determine how the outline of a specific shape or text is drawn, e.g., an unbroken line of varying thickness or a dashed line with variable spaces. To define the stroke attributes for a Graphics2D context, you need to use a BasicStroke object, which defines characteristics such as the line width, end cap style, segment join style, and the dashing pattern: BasicStroke(float penwidth, int capstyle, int joinstyle) Then you call setstroke to set or change the Stroke attribute in the Graphics2D context. For example, the following code makes a circular cap centered on the endpoint, with a diameter of the pen width as shown in Figure 2 C. Double startx = 10.0; Double starty = 30.0; Line2D line1 = new Line2D.Double(startX,startY,50,startY);

4 4 SHAN HE, SOFTWARE SYSTEM COMPONENTS 1 GRAPHICS BasicStroke stroke = new BasicStroke(25, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL); g2.setstroke(stroke); g2.setcolor(color.blue); g2.draw(line1); A) CAP_SQUARE B) CAP_BUTT C) CAP_ROUND Figure 2. Different end cap styles. We can also define different segment join styles as shown in 4. A) JOIN_MITER B) JOIN_BEVEL C) JOIN_ROUND Figure 3. Different segment join styles. We can also define dashing pattern of the outline of a specific shape or text. Here is an example: BasicStroke stroke = new BasicStroke(4.0f,// Width BasicStroke.CAP_SQUARE, // End cap BasicStroke.JOIN_MITER, // Join style 10.0f, // Mitre limit new float[] {16.0f,20.0f}, // Dash pattern

5 LECTURE 3. INTRODUCTION TO JAVA 2D GRAPHICS (II) 5 0.0f); // Dash phase Mitre limit option will keeps a mitre from extending out an unreasonable length when two lines forming a small angle. The dash pattern is an array of floating point numbers that specify first the length of the dashed line, followed by the length of the space. If necessary, the dash and space values specified will repeat themselves. The dash phase allows an offset, or phase, into the line as a distance that the pattern should begin. We can define very complex dashing pattern. The following is an example Figure 4. Dashing line pattern Rendering Hints In Java Graphics, if we need to control quality and speed of output, we can choose different algorithms, e.g., line drawing algorithms and anti-aliasing algorithms, used by other classes which perform rendering and image manipulation services. This is done by defining and managing collections of keys and associated values of RenderingHints class. There are a lot of options you can set. The main ones are: Antialiasing default, on, or off Color rendering default, quality, or speed Interpolation can be set to nearest-neighbour, bilinear, or bicubic. Rendering default, quality, or speed Text antialiasing default, on, or off We can test the antialiasing option. As we can see from Figure 5, anti-aliasing smooths jagged edges by blurring them Exercise Exercise 1. Please use the dashing pattern and join round style to draw a vase. You could reuse your code for Exercise 2 in Lecture 2

6 6 SHAN HE, SOFTWARE SYSTEM COMPONENTS 1 GRAPHICS A) Without anti-aliasing B) With anti-aliasing Figure 5. Comparison between rendering without and with antialiasing. Exercise 2. Please draw a heart and fill in a GradientPaint of red and black. You could reuse your code for Exercise 4 in Lecture 2

public void paintcomponent(graphics g) { Graphics2D g2 = (Graphics2D)g;... }

public void paintcomponent(graphics g) { Graphics2D g2 = (Graphics2D)g;... } 6.1 RANDERING The original JDK 1.0 had a very simple mechanism for drawing shapes. You select color and paint mode, and call methods of the Graphics class such as drawrect or filloval. The Java 2D API

More information

IS311 Programming Concepts J AVA. Abstract Window Toolkit. (part 2: Graphics2D)

IS311 Programming Concepts J AVA. Abstract Window Toolkit. (part 2: Graphics2D) IS311 Programming Concepts J AVA Abstract Window Toolkit (part 2: Graphics2D) Graphics2D เป น subclass ของ Graphics เพ มความสามารถ ในการควบค มร ปทรงเรขาคณ ตท ซ บซ อนมากข น เช น Draw lines of any thickness

More information

Java How to Program, 9/e. Copyright by Pearson Education, Inc. All Rights Reserved.

Java How to Program, 9/e. Copyright by Pearson Education, Inc. All Rights Reserved. Java How to Program, 9/e Copyright 1992-2012 by Pearson Education, Inc. All Rights Reserved. Overview capabilities for drawing two-dimensional shapes, controlling colors and controlling fonts. One of

More information

Class Meeting 05 (Lecture 04) Objectives for this class meeting. Conduct vote on basic style of game for class project

Class Meeting 05 (Lecture 04) Objectives for this class meeting. Conduct vote on basic style of game for class project CSE1720 Click to edit Master Week text 02, styles Class Meeting 05 (Lecture 04) Second level Third level Fourth level Fifth level Winter 2013 Thursday, January 17, 2013 1 Objectives for this class meeting

More information

Overview. Java2D. Graphics in Java2D: Colour Images Fonts. The bigger picture of Java Graphics: Java Advanced Imaging (JAI) API Java3D

Overview. Java2D. Graphics in Java2D: Colour Images Fonts. The bigger picture of Java Graphics: Java Advanced Imaging (JAI) API Java3D Graphics in Java2D: Colour Images Fonts Overview The bigger picture of Java Graphics: Java Advanced Imaging (JAI) API Java3D The bigger picture of Java multimedia ITNP80: Multimedia 1 ITNP80: Multimedia

More information

Graphics and Java 2D Introduction OBJECTIVES. One picture is worth ten thousand words.

Graphics and Java 2D Introduction OBJECTIVES. One picture is worth ten thousand words. 1 2 12 Graphics and Java 2D One picture is worth ten thousand words. Chinese proverb Treat nature in terms of the cylinder, the sphere, the cone, all in perspective. Paul Cézanne Colors, like features,

More information

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations Multimedia Systems 03 Vector Graphics 2D and 3D Graphics, Transformations Imran Ihsan Assistant Professor, Department of Computer Science Air University, Islamabad, Pakistan www.imranihsan.com Lectures

More information

2D Graphics. Shape Models, Drawing, Selection. CS d Graphics 1

2D Graphics. Shape Models, Drawing, Selection. CS d Graphics 1 2D Graphics Shape Models, Drawing, Selection 1 Graphic Models vs. Images Computer Graphics: the creation, storage, and manipulation of images and their models Model: a mathematical representation of an

More information

How to draw and create shapes

How to draw and create shapes Adobe Flash Professional Guide How to draw and create shapes You can add artwork to your Adobe Flash Professional documents in two ways: You can import images or draw original artwork in Flash by using

More information

2D Graphics. Shape Models, Drawing, Selection. CS d Graphics 1

2D Graphics. Shape Models, Drawing, Selection. CS d Graphics 1 2D Graphics Shape Models, Drawing, Selection 1 Graphic Models vs. Images Computer Graphics: the creation, storage, and manipulation of images and their models Model: a mathematical representation of an

More information

COMP371 COMPUTER GRAPHICS

COMP371 COMPUTER GRAPHICS COMP371 COMPUTER GRAPHICS LECTURE 14 RASTERIZATION 1 Lecture Overview Review of last class Line Scan conversion Polygon Scan conversion Antialiasing 2 Rasterization The raster display is a matrix of picture

More information

JavaFX Technology Building GUI Applications With JavaFX - Tutorial Overview

JavaFX Technology Building GUI Applications With JavaFX - Tutorial Overview avafx Tutorial Develop Applications for Desktop and Mobile Java FX 2/10/09 3:35 PM Sun Java Solaris Communities My SDN Account Join SDN SDN Home > Java Technology > JavaFX Technology > JavaFX Technology

More information

Java Programming. Computer Science 112

Java Programming. Computer Science 112 Java Programming Computer Science 112 Recap: Swing You use Window Builder to put Widgets together on a Layout. User interacts with Widgets to produce Events. Code in the Client Listens for Events to know

More information

Unit 2 Output Primitives and their Attributes

Unit 2 Output Primitives and their Attributes Unit 2 Output Primitives and their Attributes Shapes and colors of the objects can be described internally with pixel arrays or with sets of basic geometric structures, such as straight line segments and

More information

Einführung in Visual Computing

Einführung in Visual Computing Einführung in Visual Computing 186.822 Rasterization Werner Purgathofer Rasterization in the Rendering Pipeline scene objects in object space transformed vertices in clip space scene in normalized device

More information

This is the vector graphics "drawing" technology with its technical and creative beauty. SVG Inkscape vectors

This is the vector graphics drawing technology with its technical and creative beauty. SVG Inkscape vectors 1 SVG This is the vector graphics "drawing" technology with its technical and creative beauty SVG Inkscape vectors SVG 2 SVG = Scalable Vector Graphics is an integrated standard for drawing Along with

More information

Computer Graphics. Chapter 4 Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Computer Graphics. Chapter 4 Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1 Computer Graphics Chapter 4 Attributes of Graphics Primitives Somsak Walairacht, Computer Engineering, KMITL 1 Outline OpenGL State Variables Point Attributes Line Attributes Fill-Area Attributes Scan-Line

More information

Graphics (Output) Primitives. Chapters 3 & 4

Graphics (Output) Primitives. Chapters 3 & 4 Graphics (Output) Primitives Chapters 3 & 4 Graphic Output and Input Pipeline Scan conversion converts primitives such as lines, circles, etc. into pixel values geometric description a finite scene area

More information

Krita Vector Tools

Krita Vector Tools Krita 2.9 05 Vector Tools In this chapter we will look at each of the vector tools. Vector tools in Krita, at least for now, are complementary tools for digital painting. They can be useful to draw clean

More information

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons The Inkscape Program Inkscape is a free, but very powerful vector graphics program. Available for all computer formats

More information

Chapter - 2: Geometry and Line Generations

Chapter - 2: Geometry and Line Generations Chapter - 2: Geometry and Line Generations In Computer graphics, various application ranges in different areas like entertainment to scientific image processing. In defining this all application mathematics

More information

CONTENTS IN DETAIL. What s in This Book?... xx Who Is This Book For?... xx

CONTENTS IN DETAIL. What s in This Book?... xx Who Is This Book For?... xx CONTENTS IN DETAIL ACKNOWLEDGMENTS xvii INTRODUCTION xix What s in This Book?... xx Who Is This Book For?... xx 1 INKSCAPE AND THE WORLD 1.1 What Vector Graphics Is and Why It Matters... 1.2 What Can You

More information

Chapter 10. Creating 3D Objects Delmar, Cengage Learning

Chapter 10. Creating 3D Objects Delmar, Cengage Learning Chapter 10 Creating 3D Objects 2011 Delmar, Cengage Learning Objectives Extrude objects Revolve objects Manipulate surface shading and lighting Map artwork to 3D objects Extrude Objects Extrude & Bevel

More information

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes CS 200 Lecture 04 (aka Vector Graphics) 1 Abbreviations aka dpi HCGW NDWB ppi Also Known As Dots Per Inch How Computer Graphics Works (a book) The Non-Designer s Web Book pixels per inch Miscellaneous

More information

Affine Transformations. Transforming shape models Combining affine transformations Scene graphs, interactor trees Hit tests on transformed shapes

Affine Transformations. Transforming shape models Combining affine transformations Scene graphs, interactor trees Hit tests on transformed shapes Affine Transformations Transforming shape models Combining affine transformations Scene graphs, interactor trees Hit tests on transformed shapes Reacll: Shape Models We can think of widgets as shape models

More information

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves CSC 418/2504: Computer Graphics Course web site (includes course information sheet): http://www.dgp.toronto.edu/~elf Instructor: Eugene Fiume Office: BA 5266 Phone: 416 978 5472 (not a reliable way) Email:

More information

XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues create or free graphics contexts and graphics context structure

XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues create or free graphics contexts and graphics context structure XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues create or free graphics contexts and graphics context structure GC XCreateGC(display, d, valuemask, values) Drawable d;

More information

TWO-DIMENSIONAL FIGURES

TWO-DIMENSIONAL FIGURES TWO-DIMENSIONAL FIGURES Two-dimensional (D) figures can be rendered by a graphics context. Here are the Graphics methods for drawing draw common figures: java.awt.graphics Methods to Draw Lines, Rectangles

More information

After completing each task, be sure to save the file in the My Documents folder on your computer using the suggested name.

After completing each task, be sure to save the file in the My Documents folder on your computer using the suggested name. PowerPoint Basic PPT2K13B Final Assignment This is the final assignment for the PowerPoint Basic course. Before attempting to complete this evaluation, you should have completed all Lessons Presentations,

More information

Vectornator Pro. Manual Version 1.0.2, April 5th, A Linearity GmbH Production

Vectornator Pro. Manual Version 1.0.2, April 5th, A Linearity GmbH Production Vectornator Pro Manual Version 1.0.2, April 5th, 2018 A Linearity GmbH Production Vectornator Pro The best and most advanced vector graphic design software for ios A Linearity GmbH Production What you

More information

Adding Objects Creating Shapes Adding. Text Printing and Exporting Getting Started Creating a. Creating Shapes Adding Text Printing and Exporting

Adding Objects Creating Shapes Adding. Text Printing and Exporting Getting Started Creating a. Creating Shapes Adding Text Printing and Exporting Getting Started Creating a Workspace Pages, Masters and Guides Adding Objects Creating Shapes Adding Text Printing and Exporting Getting Started Creating a Workspace Pages, Masters and Guides Adding Objects

More information

Lecture 7 A First Graphic Program And Data Structures & Drawing

Lecture 7 A First Graphic Program And Data Structures & Drawing Lecture 7 A First Graphic Program And Data Structures & Drawing Objective The objective is that you will understand: How to program the generation of 2D and 3D images. How to manipulate those images through

More information

Graphics JFrame. import java.awt.*; import javax.swing.*; public class XXX extends JFrame { public XXX() { ... main() public static

Graphics JFrame. import java.awt.*; import javax.swing.*; public class XXX extends JFrame { public XXX() { ... main() public static Graphics 2006.11.22 1 1.1 javax.swing.* JFrame JFrame public class XXX extends JFrame { public XXX() { //... // ( )... main() public static public class XXX extends JFrame { public XXX() { setdefaultcloseoperation(jframe.exit_on_close);

More information

Java 2D Graphics. Drawing Primitives, Affine Transformations, Scene Graphs, Hit Tests. Drawing Primitives 2/9/2014. Using it is simple.

Java 2D Graphics. Drawing Primitives, Affine Transformations, Scene Graphs, Hit Tests. Drawing Primitives 2/9/2014. Using it is simple. Java 2D Graphics Drawing Primitives, Affine Transformations, Scene Graphs, Hit Tests Drawing Primitives Graphics - Abstract Base Class that supports basic drawing and rendering - Conceptually sim. to WatGUI

More information

Rasterization. CS4620/5620: Lecture 12. Announcements. Turn in HW 1. PPA 1 out. Friday lecture. History of graphics PPA 1 in 4621.

Rasterization. CS4620/5620: Lecture 12. Announcements. Turn in HW 1. PPA 1 out. Friday lecture. History of graphics PPA 1 in 4621. CS4620/5620: Lecture 12 Rasterization 1 Announcements Turn in HW 1 PPA 1 out Friday lecture History of graphics PPA 1 in 4621 2 The graphics pipeline The standard approach to object-order graphics Many

More information

Graphics and Painting

Graphics and Painting Graphics and Painting Lecture 17 CGS 3416 Fall 2015 November 30, 2015 paint() methods Lightweight Swing components that extend class JComponent have a method called paintcomponent, with this prototype:

More information

INKSCAPE INTRODUCTION COMPONENTS OF INKSCAPE MENU BAR

INKSCAPE INTRODUCTION COMPONENTS OF INKSCAPE MENU BAR INKSCAPE Prepared by K. Srujana INTRODUCTION Inkscape began in 2003 as a code fork of the Sodipodia project. Sodipodi, developed since 1999, was itself based on Rsph Levien's Gill (Gnome Illustration Application).

More information

9Introducing. Concurrency with Threads

9Introducing. Concurrency with Threads 9Introducing Concurrency with Threads 118 Chapter 9: Introducing Concurrency with Threads Self-review Questions 9.1 What is a thread? A thread is a single path of execution through a program that can be

More information

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) CS 200 Winter Geometric Graphics

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) CS 200 Winter Geometric Graphics CS 200 Lecture 04 (aka Vector Graphics) 1 Abbreviations aka dpi HCGW NDWB ppi Also Known As Dots Per Inch How Computer Graphics Works (a book) The Non-Designer s Web Book pixels per inch Please note that

More information

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes CS 200 Lecture 04 (aka Vector Graphics) 1 Abbreviations aka dpi HCGW NDWB ppi Also Known As Dots Per Inch How Computer Graphics Works (a book) The Non-Designer s Web Book pixels per inch Please note that

More information

1. Complete these exercises to practice creating user functions in small sketches.

1. Complete these exercises to practice creating user functions in small sketches. Lab 6 Due: Fri, Nov 4, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the

More information

Agenda. Programming Seminar. By: dr. Amal Khalifa. Coordinate systems Colors Fonts Drawing shapes Graphics2D API

Agenda. Programming Seminar. By: dr. Amal Khalifa. Coordinate systems Colors Fonts Drawing shapes Graphics2D API Agenda Coordinate systems Colors Fonts Drawing shapes Graphics2D API By: dr. Amal Khalifa 1 Programming Seminar @12:30 13:30 pm on Wednesday 9/4/2014 Location : 2.505.01 Painting components 2 Every component

More information

GRAPHIC WEB DESIGNER PROGRAM

GRAPHIC WEB DESIGNER PROGRAM NH132 Illustrator Level 1 24Total Hours COURSE TITLE: Illustrator Level 1 COURSE OVERVIEW: This course covers the fundamentals of Illustrator, which is used primarily to work with vector-based graphics.

More information

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller Line Drawing Introduction to Computer Graphics Torsten Möller / Mike Phillips Rendering Pipeline Hardware Modelling Transform Visibility Illumination + Shading Perception, Color Interaction Texture/ Realism

More information

Exercise III: Creating a Logo with Illustrator CS6

Exercise III: Creating a Logo with Illustrator CS6 Exercise III: Creating a Logo with Illustrator CS6 Project 1: Creating Logos with the Shape Tools Now that we have some experience with Illustrator s tools, let s expand our goal to create a logo, web

More information

CHAPTER 6 THE SUITES VECTOR DRAWING SUITE

CHAPTER 6 THE SUITES VECTOR DRAWING SUITE CHAPTER 6 THE SUITES There are two additional tool bar suites for Project Designer sold separately as add-on modules. These are the Vector Drawing Suite, and the Pattern Modeling Suite. This section will

More information

Graphics Hit-testing. Shape Models Selecting Lines and Shapes. 2.7 Graphics Hit-testing 1

Graphics Hit-testing. Shape Models Selecting Lines and Shapes. 2.7 Graphics Hit-testing 1 Graphics Hit-testing Shape Models Selecting Lines and Shapes 2.7 Graphics Hit-testing 1 Recap - Graphic Models and Images Computer Graphics is the creation, storage, and manipulation of images and their

More information

Photocopiable/digital resources may only be copied by the purchasing institution on a single site and for their own use ZigZag Education, 2013

Photocopiable/digital resources may only be copied by the purchasing institution on a single site and for their own use ZigZag Education, 2013 SketchUp Level of Difficulty Time Approximately 15 20 minutes Photocopiable/digital resources may only be copied by the purchasing institution on a single site and for their own use ZigZag Education, 2013

More information

Computer Graphics. Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Computer Graphics. Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1 Computer Graphics Chapter 4 Attributes of Graphics Primitives Somsak Walairacht, Computer Engineering, KMITL 1 Outline OpenGL State Variables Point Attributes t Line Attributes Fill-Area Attributes Scan-Line

More information

Microsoft Office Word 2010

Microsoft Office Word 2010 Microsoft Office Word 2010 Inserting and Working with Pictures (Images) 1. Images in your work An image is a great way to liven up a document, but in academic uses is normally only included where something

More information

Education and Training CUFMEM14A. Exercise 2. Create, Manipulate and Incorporate 2D Graphics

Education and Training CUFMEM14A. Exercise 2. Create, Manipulate and Incorporate 2D Graphics Education and Training CUFMEM14A Exercise 2 Create, Manipulate and Incorporate 2D Graphics Menu Exercise 2 Exercise 2a: Scarecrow Exercise - Painting and Drawing Tools... 3 Exercise 2b: Scarecrow Exercise

More information

Advanced Internet Programming CSY3020

Advanced Internet Programming CSY3020 Advanced Internet Programming CSY3020 Java Applets The three Java Applet examples produce a very rudimentary drawing applet. An Applet is compiled Java which is normally run within a browser. Java applets

More information

CISC 1600 Lecture 3.1 Introduction to Processing

CISC 1600 Lecture 3.1 Introduction to Processing CISC 1600 Lecture 3.1 Introduction to Processing Topics: Example sketches Drawing functions in Processing Colors in Processing General Processing syntax Processing is for sketching Designed to allow artists

More information

Creative Effects with Illustrator

Creative Effects with Illustrator ADOBE ILLUSTRATOR Creative Effects with Illustrator PREVIEW OVERVIEW The object is to create a poster with a unified color scheme by compositing artwork drawn in Illustrator with various effects and photographs.

More information

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical

More information

Assignment 2. Application Development

Assignment 2. Application Development Application Development Assignment 2 Content Application Development Day 2 Lecture The lecture covers the key language elements of the Java programming language. You are introduced to numerical data and

More information

CSCI 4620/8626. Primitives and Attributes

CSCI 4620/8626. Primitives and Attributes CSCI 4620/8626 Computer Graphics Attributes of Graphics Primitives (Chapter 5) Last update: 2016-02-23 Primitives and Attributes The graphics primitives we ve seen so far are fundamental shapes, like lines,

More information

Graphics Transformations

Graphics Transformations Graphics Transformations Translate, Scale, Rotate Homogeneous Coordinates Affine Transformation Matrices Combining Transformations Shape Model Class 2.7 Graphics Transformations 1 Positioning Shapes Translate

More information

EF432. Introduction to spagetti and meatballs

EF432. Introduction to spagetti and meatballs EF432 Introduction to spagetti and meatballs CSC 418/2504: Computer Graphics Course web site (includes course information sheet): http://www.dgp.toronto.edu/~karan/courses/418/fall2015 Instructor: Karan

More information

5 Drawing Stuff in 2D

5 Drawing Stuff in 2D 16 Advanced Java for Bioinformatics, WS 17/18, D. Huson, November 6, 2017 5 Drawing Stuff in 2D The scene graph is a tree whose nodes are layout items, controls and, as we will see, graphic objects. JavaFX

More information

(Refer Slide Time: 00:02:00)

(Refer Slide Time: 00:02:00) Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 18 Polyfill - Scan Conversion of a Polygon Today we will discuss the concepts

More information

Output models Drawing Rasterization Color models

Output models Drawing Rasterization Color models Output models Drawing Rasterization olor models Fall 2004 6.831 UI Design and Implementation 1 Fall 2004 6.831 UI Design and Implementation 2 omponents Graphical objects arranged in a tree with automatic

More information

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created.

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created. + Inheritance + Inheritance Classes that we design in Java can be used to model some concept in our program. For example: Pokemon a = new Pokemon(); Pokemon b = new Pokemon() Sometimes we need to create

More information

Lets assume each object has a defined colour. Hence our illumination model is looks unrealistic.

Lets assume each object has a defined colour. Hence our illumination model is looks unrealistic. Shading Models There are two main types of rendering that we cover, polygon rendering ray tracing Polygon rendering is used to apply illumination models to polygons, whereas ray tracing applies to arbitrary

More information

1 Getting started with Processing

1 Getting started with Processing cisc3665, fall 2011, lab I.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Advanced Special Effects

Advanced Special Effects Adobe Illustrator Advanced Special Effects AI exercise preview exercise overview The object is to create a poster with a unified color scheme by compositing artwork drawn in Illustrator with various effects

More information

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics? EF432 Introduction to spagetti and meatballs CSC 418/2504: Computer Graphics Course web site (includes course information sheet): http://www.dgp.toronto.edu/~karan/courses/418/ Instructors: L0101, W 12-2pm

More information

Line Drawing. Foundations of Computer Graphics Torsten Möller

Line Drawing. Foundations of Computer Graphics Torsten Möller Line Drawing Foundations of Computer Graphics Torsten Möller Rendering Pipeline Hardware Modelling Transform Visibility Illumination + Shading Perception, Interaction Color Texture/ Realism Reading Angel

More information

The process of making a selection is fundamental to all Photoshop

The process of making a selection is fundamental to all Photoshop 102640 ch15.1.qxp 3/10/07 11:23 AM Page 303 Making Selections The process of making a selection is fundamental to all Photoshop documents. A selection isolates an area of an image so that you can apply

More information

ME 111: Engineering Drawing. Geometric Constructions

ME 111: Engineering Drawing. Geometric Constructions ME 111: Engineering Drawing Lecture 2 01-08-2011 Geometric Constructions Indian Institute of Technology Guwahati Guwahati 781039 Geometric Construction Construction of primitive geometric forms (points,

More information

Introduction. Using Shapes. Word 2010 Working with Shapes. Video: Working with Shapes in Word To Insert a Shape: Page 1

Introduction. Using Shapes. Word 2010 Working with Shapes. Video: Working with Shapes in Word To Insert a Shape: Page 1 Word 2010 Working with Shapes Introduction Page 1 You can add a variety of shapes to your document including arrows, callouts, squares, stars, flowchart shapes and more. Want to set your name and address

More information

EXAMINATIONS 2017 TRIMESTER 2

EXAMINATIONS 2017 TRIMESTER 2 EXAMINATIONS 2017 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators

More information

file://c:\dokumente und Einstellungen\Lot\Lokale Einstellungen\Temp\~hhD434.htm

file://c:\dokumente und Einstellungen\Lot\Lokale Einstellungen\Temp\~hhD434.htm Seite 1 von 56 Welcome to splan 7.0 splan is an easy-to-handle and comfortable CAD-software, developed for electronic and electric circuit diagrams. Dragging and dropping components from the library to

More information

Hairy Brushes. Steve Strassmann. Computer Graphics and Animation Group, MIT Media Laboratory SIGGRAPH 1986

Hairy Brushes. Steve Strassmann. Computer Graphics and Animation Group, MIT Media Laboratory SIGGRAPH 1986 Hairy Brushes Steve Strassmann Computer Graphics and Animation Group, MIT Media Laboratory SIGGRAPH 1986 Presented by: Maria Pace November 8, 2007 CS 536 Problem: Create a more realistic painting model

More information

Creative Effects with Illustrator

Creative Effects with Illustrator ADOBE ILLUSTRATOR PREVIEW Creative Effects with Illustrator AI OVERVIEW The object is to create a poster with a unified color scheme by compositing artwork drawn in Illustrator with various effects and

More information

Chapter 8: Implementation- Clipping and Rasterization

Chapter 8: Implementation- Clipping and Rasterization Chapter 8: Implementation- Clipping and Rasterization Clipping Fundamentals Cohen-Sutherland Parametric Polygons Circles and Curves Text Basic Concepts: The purpose of clipping is to remove objects or

More information

Creating Vector Shapes Week 2 Assignment 1. Illustrator Defaults

Creating Vector Shapes Week 2 Assignment 1. Illustrator Defaults Illustrator Defaults Before we begin, we are going to make sure that all of us are using the same settings within our application. For this class, we will always want to make sure that our application

More information

EFILive V8 Gauge Editor

EFILive V8 Gauge Editor Paul Blackmore 2013 EFILive Limited All rights reserved First published 17 October 2013 Revised 7 May 2014 EFILive, FlashScan and AutoCal are registered trademarks of EFILive Limited. All other trademarks

More information

TeeJay Publishers Homework for Level D book Ch 10-2 Dimensions

TeeJay Publishers Homework for Level D book Ch 10-2 Dimensions Chapter 10 2 Dimensions Exercise 1 1. Name these shapes :- a b c d e f g 2. Identify all the 2 Dimensional mathematical shapes in these figures : (d) (e) (f) (g) (h) 3. Write down the special name for

More information

EF432. Introduction to spagetti and meatballs

EF432. Introduction to spagetti and meatballs EF432 Introduction to spagetti and meatballs CSC 418/2504: Computer Graphics Course web site (includes course information sheet): http://www.dgp.toronto.edu/~karan/courses/418/ Instructors: L2501, T 6-8pm

More information

MET 107 Drawing Tool (Shapes) Notes Day 3

MET 107 Drawing Tool (Shapes) Notes Day 3 MET 107 Drawing Tool (Shapes) Notes Day 3 Shapes: (Insert Tab Shapes) Example: Select on the rounded rectangle Then use the mouse to position the upper left corner and produce the size by dragging out

More information

Adobe Flash CS4 Part 1: Introduction to Flash

Adobe Flash CS4 Part 1: Introduction to Flash CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Adobe Flash CS4 Part 1: Introduction to Flash Fall 2010, Version 1.0 Table of Contents Introduction...3 Downloading the Data Files...3

More information

INSTRUCTORS: A. SANPHAWAT JATUPATWARANGKUL A. NATTAPOL SUPHAWONG A. THEEPRAKORN LUNTHOMRATTANA COMPUTER AIDED DESIGN I AUTOCAD AND ILLUSTRATOR CS

INSTRUCTORS: A. SANPHAWAT JATUPATWARANGKUL A. NATTAPOL SUPHAWONG A. THEEPRAKORN LUNTHOMRATTANA COMPUTER AIDED DESIGN I AUTOCAD AND ILLUSTRATOR CS INSTRUCTORS: A. SANPHAWAT JATUPATWARANGKUL A. NATTAPOL SUPHAWONG A. THEEPRAKORN LUNTHOMRATTANA COMPUTER AIDED DESIGN I AUTOCAD AND ILLUSTRATOR CS BITMAP IMAGES VS VECTOR GRAPHICS WORKING WITH BITMAP IMAGES

More information

JCCKit Configuration Manual

JCCKit Configuration Manual JCCKit Configuration Manual Version 1.1 Author: Franz-Josef Elmer 14th December 2004 Contents 1 Concept 1 1.1 Introduction..................................... 1 1.2 Parameter Inheritance...............................

More information

A Comprehensive Introduction to SolidWorks 2011

A Comprehensive Introduction to SolidWorks 2011 A Comprehensive Introduction to SolidWorks 2011 Godfrey Onwubolu, Ph.D. SDC PUBLICATIONS www.sdcpublications.com Schroff Development Corporation Chapter 2 Geometric Construction Tools Objectives: When

More information

Representing Graphical Data

Representing Graphical Data Representing Graphical Data Cunliffe & Elliott, chapter 4 Chapman & Chapman, chapters 3,4 CSCU9N5: Multimedia and HCI 1 Representing Graphical Data Logical and Physical Representation Use of colour: Pixels

More information

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox SVG SVG Scalable Vector Graphics (SVG) is an XML-based vector image format for twodimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed

More information

Lesson 6 Adding Graphics

Lesson 6 Adding Graphics Lesson 6 Adding Graphics Inserting Graphics Images Graphics files (pictures, drawings, and other images) can be inserted into documents, or into frames within documents. They can either be embedded or

More information

Chapter 6 Formatting Graphic Objects

Chapter 6 Formatting Graphic Objects Impress Guide Chapter 6 OpenOffice.org Copyright This document is Copyright 2007 by its contributors as listed in the section titled Authors. You can distribute it and/or modify it under the terms of either

More information

Basics of Flash Animation

Basics of Flash Animation Basics of Flash Animation The Stage is where you do your main design work The timeline is where you animate your objects by setting keyframes The library is where you store all your assets things you use

More information

Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand

Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand Photoshop is the software for image processing. With this you can manipulate your pictures, either scanned or otherwise inserted to a great extant.

More information

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive 4Drawing with Shape and Line Tools Illustrator provides tools for easily creating lines and shapes. Drawing with shapes (rectangles, ellipses, stars, etc.) can be a surprisingly creative and satisfying

More information

OS OpenData masterclass 2013 Cartographic Design workshop

OS OpenData masterclass 2013 Cartographic Design workshop OS OpenData masterclass 2013 Cartographic Design workshop 1 Quantum GIS Quantum GIS (QGIS) is a user-friendly Open Source Geographic Information System (GIS,) licensed under the GNU General Public License.

More information

S206E Lecture 3, 5/15/2017, Rhino 2D drawing an overview

S206E Lecture 3, 5/15/2017, Rhino 2D drawing an overview Copyright 2017, Chiu-Shui Chan. All Rights Reserved. S206E057 Spring 2017 Rhino 2D drawing is very much the same as it is developed in AutoCAD. There are a lot of similarities in interface and in executing

More information

Inkscape Tutorial. v2.0. Simon Andrews.

Inkscape Tutorial. v2.0. Simon Andrews. Inkscape Tutorial v2.0 Simon Andrews simon.andrews@babraham.ac.uk What is Inkscape? Vector Graphics Editor Free Software Cross Platform Easy to use Good for: Compositing Drawing Not for: Bitmap editing

More information

Curves & Splines. Assignment #3. Overview & Objectives. Due Dates. CPSC 453 Fall 2018 University of Calgary

Curves & Splines. Assignment #3. Overview & Objectives. Due Dates. CPSC 453 Fall 2018 University of Calgary Curves & Splines Assignment #3 CPSC 453 Fall 2018 University of Calgary Overview & Objectives The main objective of this third assignment in CPSC 453 is to learn to work with Bézier curves and splines.

More information

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical and mathematical

More information

SignGO Pro // SignGO Lite Features Listing

SignGO Pro // SignGO Lite Features Listing SignGO Pro // SignGO Lite Features Listing Features Design Text Entry SignGO Lite SignGO Pro Artistic Text Text On Arc Text On Path Frame Text AutoMerge Script Drawing Shape drawing Freehand drawing Logos

More information

Illustrator Domains 1-4: Getting to Know Your Workspace. Dreamweaver Domain 3

Illustrator Domains 1-4: Getting to Know Your Workspace. Dreamweaver Domain 3 Illustrator Domains 1-4: Getting to Know Your Workspace 1 Lesson 1: Getting to Know the Work Area Toolbar Fly-out menus for hidden tools Panels Can be opened, closed, docked, or hide all (Tab) Like your

More information

Paint/Draw Tools. Foreground color. Free-form select. Select. Eraser/Color Eraser. Fill Color. Color Picker. Magnify. Pencil. Brush.

Paint/Draw Tools. Foreground color. Free-form select. Select. Eraser/Color Eraser. Fill Color. Color Picker. Magnify. Pencil. Brush. Paint/Draw Tools There are two types of draw programs. Bitmap (Paint) Uses pixels mapped to a grid More suitable for photo-realistic images Not easily scalable loses sharpness if resized File sizes are

More information