Lecture55 16473 Graphics
Lecture55 16473 Graphics
INSTRUCTOR’S MATERIALS
PowerPoint Slides
Chapter - 4
Graphics
PROPRIETARY MATERIAL. © 2013 The McGraw-Hill Companies, Inc. All rights reserved. No part of this PowerPoint slide may be displayed, reproduced or distributed in any form or by
any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their
individual course preparation. If you are a student using this PowerPoint slide, you are using it without permission. 1
RANJAN PAREKH Principles of MULTIMEDIA, 2E © 2013 Tata McGraw-Hill Education
Contents
• Advantages of Graphics
• Components of a Graphics System
• 2D Coordinate Systems
• 2D Transformations
• Line Drawing Algorithms
• Circle Drawing Algorithms
• Filling and Clipping Algorithms
• 2D Modeling
• Curves and Splines
• Splines as Polynomials
Advantages of Graphics
• Overview
– Compact file size
– Adapt to varying magnification
– Suitability for animation
– Suitability for interactive applications
– Extensions for 3D graphics and animation
2D Coordinate System
• Overview
– X-axis
– Y-axis
– Origin
– Coordinates
– Measurement of angles
– Right-handed coordinate system
– Left-handed coordinate system
2D Transformations
• 2D Translation
– A point is translated to a new location by adding increments to its coordinates
– In matrix form Q = P + T
• 2D Scaling
– A point is scaled to a new point by multiplying its coordinates by a scalar
– In matrix form Q = S . P
– Scaling might be uniform or non-uniform
2D Transformations
• 2D Rotation
– A point can be rotated to a new location by angle θ about the origin
– In matrix form Q = R . P
– Let P(x1,y1) with polar coordinates (r, φ) rotate in a plane around
origin by angle θ in CCW direction to point Q(x2,y2) . Then
– Original coordinates :
– Substituting :