Lecture 16 Image Document Formats. Bitmap vs. Vector Images <circle cx="10" cy="10" radius="4" border="solid" border-color="black"/> Bitmaps do not generally.

Slides:



Advertisements
Similar presentations
Iframes & Images Using HTML.
Advertisements

L.Ghadah R. Hadba CT1514-L1.  Computer Graphics :refers to processing of creating a new image from Geometry, Lighting parameters, Materials and Textures.Using.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
1 The MITRE Using XSLT and XPath to Generate SVG Roger L. Costello XML Technologies.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Graphics CS 121 Concepts of Computing II. What is a graphic? n A rectangular image. n Stored in a file of its own, or … … embedded in another data file.
Introduction to SVG & Batik Presented by Shang-Ming Huang.
Graphics on the Web CS575 Spring 2006 Dr.Abbot Student: Andre Liv.
Image Representation CS105. Data Representation Text representation – ASCII character set – Unicode – Data compression Images!
Introduction to Computer Graphics
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
Manipulating Images Image A visual representation of something that is seen in real life. It can be two-dimensional or three-dimensional A visual representation.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Zinnia Bell. RAWimages are image files that have not yet processed, they contain minimally processed data from the image sensor of either a image scanner,
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
1 Using XSLT and XPath to Generate SVG Roger L. Costello XML Technologies.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Lecture 4 - Introduction to Computer Graphics
HTML Boot Camp: Rules and Images
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
Basic Knowledge of Web creation. Computer graphic knowledge Graphic file has 2 types Raster Graphic A bitmap or raster image are comprised of pixels in.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
1 Computer Graphics Part 2: Images. 2 What is an image?  An image is the graphical and visual representation of some information that can be displayed.
Web Image Basics Comp 140 December 2. Vector Graphics Can be repositioned or resized – Will not diminish output quality Typically stored in AI, EPS, PICT.
Multimedia Elements II Graphics, Digital Video. UIT - Multimedia Production2 Multimedia Elements Multimedia elements include: Text Graphics Animation.
SVG – Scaleable Vector Graphics DBI – Representation and Management of Data on the Internet.
Information Processes and Technology Multimedia: Graphics.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
+ 5 Things you need to know about images* *Images for the web.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
Graphics workshop Library and Information Services University of St Andrews.
SVG for Designers Tom Hoferek. Objectives Introduce SVG Illustrate its capabilities Demonstrate SVG in action Speculate, discuss, answer questions.
1 Scalable Vector Graphics (SVG). 2 SVG SVG is an application language of XML. “SVG is a language for describing two- dimensional graphics in XML. SVG.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. SVG Ellen Pearlman Eileen Mullin Programming the Web Using XML.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
Raster Graphics 2.01 Investigate graphic image design.
Digital Images are represented by manipulating this…
Graphics. … Can be immersive and capture imaginations. Largest Photographs In The World.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Bitmap vs. Vector How computers work with photographs and drawings.
What is SVG?.
Inserting and Working with Images
Scalable vector graphics
2.01 Investigate graphic image design.
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
1.01 Investigate graphic types and file formats.
Introduction to Computer Graphics
Web Design and Development
2.01 Investigate graphic image design.
2.01 Investigate graphic image design.
What is SVG?.
Lecture 4 - Introduction to Computer Graphics
2.01 Investigate graphic image design.
Presentation transcript:

Lecture 16 Image Document Formats

Bitmap vs. Vector Images <circle cx="10" cy="10" radius="4" border="solid" border-color="black"/> Bitmaps do not generally scale to larger sizes very well Bitmaps do not generally scale to larger sizes very well Vector Images are resolution independant Vector Images are resolution independant Bitmaps use more disk space and memory than vector images Bitmaps use more disk space and memory than vector images Bitmaps are difficult to add metadata Bitmaps are difficult to add metadata Bitmaps display faster than vector images Bitmaps display faster than vector images Vector images are more flexible than bitmaps for manipulating Vector images are more flexible than bitmaps for manipulating Bitmaps show much more true-to-life detail Bitmaps show much more true-to-life detail Vector images are more difficult for programmers to support Vector images are more difficult for programmers to support

Bitmap Image Formats Bitmap/Raster image Bitmap/Raster image A simple information matrix describing the individual dots (pixels) that are the smallest elements of resolution on a display or printing device.A simple information matrix describing the individual dots (pixels) that are the smallest elements of resolution on a display or printing device. - monochrome (1 bit per pixel), - 16-color (4 bits per pixel), color (8 bits per pixel), - TrueColor, 16 million color (24 bits per pixel), e.g., #FF00FF.

Windows Bitmap (.bmp) Format Windows Bitmap (.bmp) Format Supports TrueColorSupports TrueColor Not compressedNot compressed GIF (Graphics Interchange Format) GIF (Graphics Interchange Format) Does not support TrueColor (up to 256 colors)Does not support TrueColor (up to 256 colors) Uses lossless compressionUses lossless compression Bitmap Image Formats (contd.)

JPEG (Joint Photographic Experts Group) JPEG (Joint Photographic Experts Group) Supports TrueColorSupports TrueColor Compression at ratios up to 20 to 1Compression at ratios up to 20 to 1 Data is discarded during compressionData is discarded during compression The compression method may degrade sharp detail in some images The compression method may degrade sharp detail in some images PNG (Portable Network Graphics,.png) Format PNG (Portable Network Graphics,.png) Format Supports TrueColorSupports TrueColor Uses lossless compressionUses lossless compression Bitmap Image Formats (contd.)

Vector Image Formats A vector image is a stored sequence of drawing commands which the computer can repeat to generate the image. A vector image is a stored sequence of drawing commands which the computer can repeat to generate the image. They contain simple drawing commands, such as line, rectangle, circle, arc, polygon. They contain simple drawing commands, such as line, rectangle, circle, arc, polygon. They may also contain commands to set colors, fill areas, display text, and even include bitmaps. They may also contain commands to set colors, fill areas, display text, and even include bitmaps. Examples: Windows Metafile, PostScript, SVG Examples: Windows Metafile, PostScript, SVG

Scalable Vector Graphics (SVG) An XML application standardized by W3C. An XML application standardized by W3C. Vector Image Format Vector Image Format SVG benefits over traditional graphics SVG benefits over traditional graphics Require considerably less bandwidthRequire considerably less bandwidth Resizable without loss of image qualityResizable without loss of image quality May be scripted, searched, and dynamically createdMay be scripted, searched, and dynamically created To be supported by web browsers. Now requires a plug-in from Adobe. To be supported by web browsers. Now requires a plug-in from Adobe.

Simple SVG Example <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG //EN" " svg is the top XML element, with a coordinate system g is used for (hierarchical) grouping path is a general tool for geometry definition paths can be filled, stroked,... paths can be transformed, animated, filtered,...

More about SVG Transformations can be defined on all elements translate, scale, skewX and skewY, rotate general 2x3 matrix concatenation of all these (from right to left):... transform="scale(2) rotate(20) translate(1,2) scale(4)"... Elements can be "grouped" in a g element Groups can be nested can set transformations, attributes, etc, inherited by their constituents can be named, can be referred to in, eg, URL-s can make the content more accessible e.g., in browsers for visually impaired make SVG code more readable

Two SVG examples…

<circle style = "fill: green; fill-opacity: 0.5" 16 cx = "150" cy = "150" r = "50"/> <rect style = "fill: blue; stroke: white" 19 x = "50" y = "50" width = "100" height = "100"/> <text style = "fill: red; font-size: 24pt" 22 x = "25" y = "250">Welcome to SVG! Root svg element defines sizes of displayable area and image An CSS style that defines background color by filling area with color Define circle, rectangle and text

Output from shapes.svg

<animateTransform attributeName = "transform" 12 type = "rotate" dur = "80s" from = "0" to = "360" 13 repeatCount = "indefinite"/> 14 <circle id = "earth" style = "fill: blue" 15 cx = "400" cy = "0" r = "40"/> <circle id = "moon" style = "fill: white" 18 cx = "70" cy = "0" r = "10"> 19 <animateTransform attributeName = "transform" 20 type = "rotate" dur = "20s" from = "360" 21 to = "0" repeatCount = "indefinite"/> Define group-element animation attributes, so objects rotate 360 degrees in 80 seconds around origin Sub-group inherits animation, but also animates moon to rotate around earth

Output from planet.svg