Graphics in IT82. Representing Graphical Data. Graphics in IT82. Lectures Overview. Representing Graphical Data. Logical / Physical Representation

Similar documents
Representing Graphical Data

Representing Graphical Data

Lecture Week 4. Images

1.6 Graphics Packages

Computer Graphics Fundamentals. Jon Macey

M4-R4: INTRODUCTION TO MULTIMEDIA (JAN 2019) DURATION: 03 Hrs

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION BGDA (UG SDE) IV SEMESTER. CORE COURSE Modeling & Animation QUESTION BANK

ITNP80: Course Organization

Introduction to Computer Graphics

MODELING AND ANIMATION

Industrial Technology

255, 255, 0 0, 255, 255 XHTML:

Adobe Illustrator CS Design Professional GETTING STARTED WITH ILLUSTRATOR

History. Early viewers

Standard File Formats

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012

Flying Start AS Computer Science. September 2015

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

Output models Drawing Rasterization Color models

Final Study Guide Arts & Communications

About Computer Graphics

Welcome to Desktop Publishing with InDesign!

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

Advanced High Graphics

Lecturer Athanasios Nikolaidis

MMGD0206 Computer Graphics. Chapter 1 Development of Computer Graphics : History

Prentice Hall. Learning Microsoft PowerPoint , (Weixel et al.) Arkansas Multimedia Applications I - Curriculum Content Frameworks

Compression and File Formats

Vector- drawn: what is the meaning of " on the fly " in vector images? It means that computers draw the image as per instructions.

FrontPage. Directions & Reference

IT82: Mul timedia. Practical Graphics Issues 20th Feb Overview. Anti-aliasing. Fonts. What is it How to do it? History Anatomy of a Font

Binghamton University. EngiNet. Thomas J. Watson. School of Engineering and Applied Science. State University of New York. EngiNet WARNING CS 560

DIS: Design and imaging software

Computer Graphics. Chapter 1 (Related to Introduction to Computer Graphics Using Java 2D and 3D)

Graphics File Formats

Adobe Photoshop CS2 Reference Guide For Windows

Bitmap and Vector Graphics (Introduction to Painting and Drawing applications)

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation

Image Types Vector vs. Raster

Computer Graphics. Apurva A. Desai

Image creation with PHP

Digital Photo Navigator

Adobe Illustrator CS4

Learning Microsoft Word By Greg Bowden. Chapter 10. Drawing Tools. Guided Computer Tutorials

III-6Exporting Graphics (Windows)

Template Graphics Guidelines

Books: 1) Computer Graphics, Principles & Practice, Second Edition in C JamesD. Foley, Andriesvan Dam, StevenK. Feiner, John F.

Multimedia Systems. Part 4. Mahdi Vasighi

Corel Draw 11. What is Vector Graphics?

APPLYING YOUR TESTING SKILLS

Computer Graphics 1 Instructor Information. Books. Graphics? Course Goals and Outcomes. Where are computer graphics? Where are computer graphics?

Input and output Systems. Peter Rounce - room G06

Part 1: Basics. Page Sorter:

Prentice Hall. Learning Media Design with Adobe CS4 (Skintik) Alabama - Course of Study - Interactive Multimedia Design

42 X : ] [ : 100 : ] III IV. [ Turn over

42 X : ] [ : 100 : ] III IV. [ Turn over

Introduction to Flash - Creating a Motion Tween

1. Introduction to Multimedia

How to draw and create shapes

Section 5. Pictures. By the end of this Section you should be able to:

Lesson 3 Creating and Using Graphics

To build shapes from scratch, use the tools are the far right of the top tool bar. These

KINGS GRAPHICS AND MULTIMEDIA DEPARTMENT OF COMPUTER SCIENCE AND ENGG. OUTPUT PRIMITIVES Part-A (2-MARKS)

Electronic Artwork Information for Authors Glossary and definitions

INTRODUCTION. Computer Graphics

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

Sir Sadiq s computer notes for class IX. Chapter no 3. Input/Output Devices

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

Unit Title: Digital Graphics for Interactive Media

Computer Graphics and Linear Algebra Rebecca Weber, 2007

HOW TO SAVE YOUR DESIGN FILES

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Geometric Graphics. CS 200 Fall 2014 Monday, September 29, 14

HO-1: INTRODUCTION TO FIREWORKS

Inspire Ten Minute Task #1

2D Drawing Primitives

11/5/16 WEB DESIGN. Branding Fall 2016

Preview from Notesale.co.uk Page 2 of 88

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

Adobe Graphics Software

Drawing Fast The Graphics Pipeline

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

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

Understanding File Management

Animation & Rendering

Quick Start. Getting Started

Chapter Three. Hardware Basics: Peripherals

Drawing Fast The Graphics Pipeline

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite.

Web Design, 5 th Edition

LectureMAKER. User Manual

Computer Graphics and Visualization. What is computer graphics?

Application Software

Creating and Editing Images in Paint Shop Pro Version XI. File Types

How to...create a Video VBOX Gauge in Inkscape. So you want to create your own gauge? How about a transparent background for those text elements?

Data Representation From 0s and 1s to images CPSC 101

Step-By-Step Instructions for Using InDesign

Multimedia on the Web

Computer Graphics (CS 543) Lecture 1 (Part 1): Introduction to Computer Graphics

Setting Up Your Drawing Environment

ROBO Master OPS656. USER'S MANUAL MANUAL NO. OPS656m-UM Introduction 1.1 Features System Requirements... 3

Transcription:

Graphics in IT82 What does computer graphics cover? Representing Graphical Data Chapman & Chapman, chapters 3,4,5 Richardson IT82 Input, output, and representation of graphical data Creation of graphics two-dimensional (flat) images three-dimensional scenes, with the modelling of objects in virtual worlds Manipulation of existing data Graphics programming, with (e.g.) OpenGL increasingly, Java traditional computer graphics courses 1 2 Graphics in IT82 We take a practically-oriented look at graphics Richardson s Practical Computer Graphics is one of the few books which takes this approach The aim is not to make you a graphic designer, but instead: To give you an understanding of issues concerning graphics input/output and representation To equip you for practical situations where you might need to use graphics, e.g. MultiMedia web pages of holiday snapshots, icon designs, lecture presentations, suitable graphics file formats to use Lectures Overview This week: Basic principles of representing graphical data Practical graphics issues (e.g. fonts) Next week / later: Representing colour Input/Output: Scanners, Cameras and Printers Basic principles of representing animation Compression of graphical data; storage in appropriate file formats Overview of Java and Graphics 3 4 Representing Graphical Data Logical and Physical Representation Use of colour: Pixels Colours Transparency Palettes Types of representation: Bitmaps Vector data Other ways Logical / Physical Representation A warning to bear in mind: Physical representation of graphical data is how it actually appears on devices A virtual/logical representation of graphical data may be in a graphics file, or internally in a program These are often not the same! The differences vary from slight to very large Converting from a virtual representation to an actual display on a device is called rendering. 5 6 1

Pixels All of computer graphics is based on properties of screen or display device Displays are divided into lots of small dots called pixels (PICture ELements) Pixel is smallest logical unit of display on the screen Can be monochrome (black and one colour) or coloured 3 x 3 array of coloured pixels Pixels Physical display is different! Not necessarily a perfect 2D grid: Arranged (logically!) in a 2D grid 7 8 2

One way to represent image data Bitmapped formats: image is modelled by an array of pixel values Bitmap data is (logically) a 2D array of pixels A bitmap gives the colours of the picture, pixel-by-pixel (bit-by-bit), in this example: Bitmaps Bitmaps were also known (in ye olden days) as a raster (the term is still in use in some circumstances, as it defines a set of dots (pixels) arranged in parallel lines) When there used to be just monochrome monitors, bitmaps did indeed have bits in them! When colours were introduced, the term pixelmap was used for coloured images. Nowadays, bitmaps can refer to 2D arrays of bits or colours. Logically, bitmaps are 2D arrays, although in fact they may be stored by other means 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 (each pixel is represented by one bit (on or off) 13 Java 2 uses a 1D int array 14 Graphical Data Representation Bitmaps have a fixed resolution (amount of detail in an image) There are other ways of representing image data which do not: Some are general purpose Some are program-specific Some are application-specific In many state-of-the-art graphics programs, images are represented internally in an application-specific way, then exported to bitmap formats. Another way to represent image data Vector-based formats contain descriptions of one or more objects, rather than pixels Uses a draw-then-edit method of image creation Often the objects are mathematically based eg line segments, polygons, circles, splines Richardson, Section 1.4 15 16 Bitmaps vs Vector Files Bitmap files are fixed resolution Vector files can be displayed at whatever level of detail is preferred Vector formats are well suited to representing 2-D images such as pencil drawings, graphs and 17 architectural or engineering drawings 18 3

Editing a vector file Bitmaps vs Vector Files Bitmaps vs Vector Files Further vector advantages: Good for storing images composed of line-based or 3D objects (e.g. wire-frame models) Easy to convert to bitmap format and in a bitmap? 19 Vector file disadvantages: Not good for storing complex images (such as photographs) Appearance of image can vary widely, depending upon the application Rendering of the image may take significantly longer than for bitmaps 20 From Vectors to Bitmaps... Historically, vector data was used a lot. Pen plotters used pens to draw on paper (an early form of graphics printer) These were cheap and produced line-based drawings. Storage of high-volume bitmap files was expensive! With the advent of cheap storage, and high-resolution output, now most images are bitmap-based. Bitmaps are everywhere! Just look at the WWW, with GIFs, JPEGs everywhere! and Back Again Trends are shifting towards a greater use of vector data - the bitmap trend may not last! Memory size is again an issue Big bitmaps take longer to transport over the internet Vector-based formats are better for 3D imaging, and 3D imaging is growing more important (fuelled by such concerns as the entertainment industry) 21 22 Other Graphics Representations Hybrid formats e.g. Metafile formats Fractal compression techniques Animation formats Special purpose 3D formats Metafile Formats A metafile can store both vector and bitmap data A bitmap is typically regarded as one type of vector object Typically most elements in the file are vectors, with the occasional bitmap e.g. a bitmap stored as a fill pattern for a shape Richardson, Section 6.9 23 24 4

Fractal Image Compression Example: Sierpinski Triangle A recent development in image representation An image is represented by a mathematical formula To produce a display of the image on a device, the formula is repeatedly applied to a (maybe) blank seed image of the required size A resolution-independent way of storing images Although the word compression is used, really this is just another way of representing an image (encoding/decoding would be better terminology) It is compression because the formula takes up less space than a bitmap would. 25 26 Transformation Producing the Sierpinski Triangle from any initial image 27 28 Use of Fractal Image Compression Typically an image would be originally in bitmap form, before this technique is applied. The resulting image then has an optimal resolution close to that of the original image. Magnification Example Original bitmap x2 Fractal version x2 Magnification still looks nicer (softer, not pixellated) with a fractally-compressed image. Sometimes representing an image in this way can be used for image enhancement. 29 30 5

Fractal Compression Pictures that are very self-similar compress well using this method Examples: Sierpinski triangle very self-similar Photograph with leaves in foreground and background would have a lot of self-similarity Most pictures (photographs or diagrams) that humans use have a lot of self-similarity Finding an example not suitable for fractal representation is difficult. Fractal compression/encoding can take time but decompression/decoding process is very fast, hence also used for archived images in a CD-Rom encyclopaedia End of Lecture Next lecture is on Practical Graphics Issues particularly to do with fonts Chapman & Chapman, pgs 109-110 31 32 6