Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.

Slides:



Advertisements
Similar presentations
Image Maps and Graphics Internet Basics and Far Beyond! Mrs. Wilson.
Advertisements

Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images.
Mr Barton’s Maths Notes
Introduction to Computer Graphics
Vector vs. Bitmap SciVis V
V Obtained from a summer workshop in Guildford County July, 2014
Digital Media Lecture 2.1: SemesterOverview Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.
COMP 175: Computer Graphics March 24, 2015
Vector vs. Bitmap
Digital Media Dr. Jim Rowan ITEC 2110 Wednesday, September 4.
Calculating Fractal Dimension from Vector Images Kelly Ran FIGURE 1. Examples of fractals (a) Vector graphics image (b) Sierpinski Carpet D ≈ 1.89 FIGURE.
Digital Media Lecture 10: Video & Compression Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
© 2011 Delmar, Cengage Learning Chapter 1 Getting to Know Illustrator.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Digital Media Lecture 3: Image Encoding Bitmapped images Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC Over the next several classes… In the next several lectures we will be covering these topics: –Vector graphics.
Digital Media Lecture 4.1: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Lecture 8: Vector Graphics 3D Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Illustrator I I450 Technology Seminar. Bitmap vs. Vector Photoshop = Bitmap Illustrator = Vector Bitmap images are resolution dependent Vector images.
Digital Media Dr. Jim Rowan ITEC Up Next! In the next several lectures we will be covering these topics: –Vector graphics –Bitmapped graphics –Color.
Vector Graphics Digital Multimedia Chap 이병희
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Lecture 2: SemesterOverview Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Digital Media Dr. Jim Rowan ITEC 2110 Chapter 3. Roll call.
Computer Graphics Rendering 2D Geometry CO2409 Computer Graphics Week 2.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.
Digital Media Dr. Jim Rowan ITEC 2110 Images: Chapters 3, 4 & 5.
Digital Media Dr. Jim Rowan ITEC 2110 Thursday, September 13.
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Illustrator.
CISC 110 Day 3 Introduction to Computer Graphics.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Digital Media Dr. Jim Rowan ITEC 2110 Chapter 3. Roll call.
Digital Media Lecture 4.2: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Lecture 2: SemesterOverview Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Guilford County SciVis V104.03
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
Lecture 2: 19/4/1435 Graphical algorithms Lecturer/ Kawther Abas CS- 375 Graphics and Human Computer Interaction.
Mohammed AM Dwikat CIS Department Digital Image.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Chapter 7 Vector Editing © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
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.
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
Vector vs. Bitmap. Vector Images Vector images (also called outline images) are images made with lines, text, and shapes. Test type is considered to be.
Digital Media Dr. Jim Rowan ITEC Up Next! In the next several lectures we will be covering these topics: –Vector graphics –Bitmapped graphics –Color.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
Bitmap Image Vectorization using Potrace Algorithm
Vector vs. Bitmap.
CSI-447: Multimedia Systems
Digital Media Lecture 4.1: Image Encoding Practice
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Dr. Jim Rowan ITEC 2110 Wednesday, September 12
IMAGES.
Dr. Jim Rowan ITEC 2110 Images: Chapters 3, 4 & 5
Chapter 7 Vector Editing
Digital Media Dr. Jim Rowan ITEC 2110.
Dr. Jim Rowan ITEC 2110 Images: Chapters 3, 4 & 5
Dr. Jim Rowan ITEC 2110 Chapter 3
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Dr. Jim Rowan ITEC 2110 Chapter 3
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan

So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats and some file compression techniques Today we are going to talk in a bit more detail about vector graphics Later we will cover Color Then 3D vector graphics

Vector Graphics… An elegant way to construct digital images that –can have a compact representation –are scalable –provdes access to the objects And mandatory for 3-D modeling

But first: Coordinate systems

Coordinate Systems Bitmapped pixel coordinates (integer) 4,04,14,24,9 3,03,13,23,9 0,00,10,20,9 x y

Coordinate Systems Bitmapped pixel coordinates (integer) A E CD x y B 5 6 A?= (, ) B?= (, ) C?= (, ) D?= (, ) E?= (, )

Coordinate Systems Vector graphics coordinates (real values) A point is defined by its x and y coordinate x y (1.41, 1.74) (x,y) They can be fractional They can be negative

Vector graphics coordinates (real values) A displacement (distance between points or movement from one point to another) can be defined by a pair of points x y (1.41, 1.74) point 1 (3.12, 0.95) displacement from point 1 to point 2? displacement = = [(x2 - x1), (y2 - y1)] = ( , ) = (1.71,-0.79) point 2 Coordinate Systems

Vectors have magnitude (length) and direction This vector goes down 0.79 and to the right 1.71 (1.71, -0.79) x y (1.41, 1.74) point 1 (3.12, 0.95) point 2 Vectors

Why “vector graphics?” This is a grandfathered term It comes from the CRT days when displays could be directly “steered” by their programs A program passed a vector to the display and the beam would move to the next point drawing a line

Next: Absolute vs Window coordinate systems

Absolute vs Window Applications render images inside of a window –They know where stuff is in the window –But not where the window is –They deal with relative coordinates The Operating system –Keeps up with the window –It deals with absolute coordinates

Absolute vs Window absolute –coordinates: measured back to the upper left hand corner of the screen relative (to the window) –coordinates measurement back to the upper left hand corner of the window to convert relative to absolute, add the relative coordinates to the absolute coordinate of the upper left hand corner of that window

The bounding box It’s a way to locate an object in space what point is used to place an object? –the center of the object’s mass? –the upper left corner? –the lower right corner? images can be contained inside a “bounding box” which is the smallest box that contains all the points found in an object

Bounding boxes; relative and absolute coordinates x y (0,0) window 1 desktop screen bounding box (210,175) window (410,290) (760,570) (100,103)

Finally: Vector Graphics Store shapes economically in the form of formulas or equations of geometric shapes A line segment can be completely described by its two endpoints… Let’s look at the line a little closer

Here’s the vector we saw earlier defined by it’s two endpoints x (1.41, 1.74) (3.12, 0.95)

But… To display a vector graphic you need to convert the vector to a bitmapped graphic… This presents problems!

Convert Vector to Bitmapped Visually... “completely cover the vector with pixels” x

Convert Vector to Bitmapped Visually... “completely cover the vector with pixels” x

Convert Vector to Bitmapped Results in an artifact… a jagged line called an alias that looks like a series of steps x

How to mitigate this alias? Anti-aliasing techniques are used but… How does this work? x

Anti-aliasing x our pixellated line to be displayed is in black

Anti-aliasing x the original vector graphic stored in the internal model is in red our pixellated line to be displayed is in black

Anti-aliasing x

x

Vector Graphics: drawing smooth curves? Question: How would you draw a curve using a computer with a mouse? You can’t draw smooth lines very easily A line tool with handles (based on the Bezier curve) can be manipulated by those handles

Lines and curves? Bezier curves can be smoothly joined together An anchor point is the point where one joins the other When a curve closes on itself it is considered a closed curve When it doesn’t it’s an open curve

Lines and curves? Closed (and open for that matter) lines can be filled –solid color, pattern or gradient (linear or radial) Lines can have different ends –mitre, rounded, square, bevel

The language of Manipulating objects… Translation: is a simple up/down side- to-side movement Scaling: make bigger or smaller Rotation: about a point Reflection: about a line

3D vector graphics? MUCH more complex than 2-D 3-D shapes (objects) are defined by their surfaces Made even more complicated by the fact that a 3-D object built inside the computer must be displayed as a 2-D graphic on a computer screen... –This results in the need to specify the viewpoint