Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Madeleine Wright Peter Wentworth. » On your screen, or with light beams, colours are additive. » Each pixel is a mixture of Red, Green and Blue, the additive.
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Graphics in the web Digital Media: Communication and Design
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
CS110: Computers and the Internet Color and Image Representation.
Digital Colour Theory. What is colour theory? It is the theory behind colour mixing and colour combination.
Prepared by George Holt Digital Photography BITMAP GRAPHIC ESSENTIALS.
Digital Images The digital representation of visual information.
Images and the Web web graphics. web graphics: constraints Due to the constraints imposed by varying degrees of Internet bandwidth, designing images for.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Graphic images for computers Stored in files of binary data - Binary blobs Software has to know the binary format to decode the file and render an image.
Digital Images Chapter 8, Exploring the Digital Domain.
THE COLORS OF LIGHT RED, GREEN and BLUE
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.
Getting the Basics Graphics for the Web McIntyre, Period 2 Kellogg, Period 5.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Working with Cascading Style Sheet (CSS) (contd.)  What we will cover… 1. Color (decimal and hexadecimal representation) 2. Floating elements 3. Styling.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Communicating Quantitative Information Is a picture worth 1000 words? Digital images. Number bases Standards, Compression Will [your] images last? Homework:
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
10 | Graphics COM 366 Web Design & Production. Native file format –Format native to software program –psd > PhotoShop default Preserves layers –Use “Save.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Data Representation Robin Burke IT 130. Outline Data Representation Binary Numbers Image types.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
Things to Remember When working with digital images.
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
Web Graphics. Web graphics Bandwidth is king Graphics must load quickly Graphics must be optimized All other components except for text, gif and jpg are.
Digital Images are represented by manipulating this…
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
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.
HTTP transaction with Graphics HTML file + two graphics files.
HONR101 Analytics in a Big Data World Monday, January 18,
Vocabulary Worksheet Answers
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Information Systems Design and Development Media Types Computing Science.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
ITEC2110, Digital Media Chapter 3 Digital Image Processing 1 GGC -- ITEC Digital Media.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Unit 2.6 Data Representation Lesson 3 ‒ Images
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
CS 115: Computing for The Socio-Techno Web
Images Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Computer Science Higher
How to Convert Pictures into Numbers
Chapter 3 Graphics and Image Data Representations
2.01 Investigate graphic image design.
Raster Images CPSC 1030.
CS 115: Computing for The Socio-Techno Web
Representing Images 2.6 – Data Representation.
MED 2001 Advanced Media Production
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Web Programming– UFCFB Lecture 7
Presentation transcript:

Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color : For other colors, it’s safest to use a numerical representation…

RGB Color The human retina has three kinds of color-sensitive photoreceptors that were traditionally called red, green and blue cones Visible colors can be created by adding different amounts of the three primary colors, red, green and blue Color monitors display colors by adding different amounts of red, green and blue light Two ways to specify turquoise using rgb in CSS: color: rgb(64,224,208); color: rgb(25%,88%,82%); RGB color components are usually defined on a scale from 0 to 255 Over 16 million colors can be represented this way!

Hexadecimal Notation RGB decimal0-255 hexadecimal00-FF Numbers in the range are represented in base 16, using two “digits” that each have 16 values, drawn from 0..9, A..F ABCDEF decimal hexadecimal Converting decimal to hexadecimal: (1)Left digit: divide by 16, convert quotient to 0..9,A..F (2)Right digit: convert remainder to 0..9,A..F Converting hexadecimal to decimal: (1)Convert left digit to 0..15, multiply by 16 (2)Convert right digit to 0..15, add to (1) Example:  C9 16 (1)201/16 =  C 16 (2)remainder is 9 10  9 16 Example: A7 16  (1)A 16 is 10 10, 10*16 = 160 (2)7 16 = 7 10  = 167

Hexadecimal Colors Using hexadecimal colors in CSS: R GB decimal0-255 hexadecimal00-FF blockquote { color: #9400D3; background-color: #E6E6FA; }

Image Representation Large image files can take a long time to download! Example: On a 300 kbps (300k bits per second) cable modem, a 450 kB image takes about 12 seconds to download Solutions: (1)Downsample images to make them smaller (fewer pixels) (2)Compress the images, using “lossless” compression (no information is lost) or “lossy” compression (less important information is lost) techniques RGB color for each pixel is stored in 24 bits (3 bytes) How much memory is needed to store a 300x500 pixel image? 300 x 500 x 3 = 450,000 bytes (450 kB)

Indexed Color indexcolor color paletteimage contents image indexcolor 00#0000FF 01#00FF00 10#FFFF00 11#00FFFF How large is a file that stores a 300x500 pixel indexed color image with 4 colors, and its color palette? (1)300x500 pixels, with 2 bits per pixel (why?) 300 x 500 x 2 = 300,000 bits (2) 4 colors, with 24 bits per color 4 x 24 = 96 bits  ~37.5kB (compared to the 450kB uncompressed file!) 2 bits per pixel 24 bits per color

Indexed Color How large is a file that stores a 300x500 pixel indexed color image with 16 colors, and its color palette? (1)number of bits to store the image pixels: (2) number of bits to store the color palette: Total file size (in bytes): “bits per pixel” is also called the “bit depth” bit depth must be large enough to store all of the colors bit-depthmax colors

GIF Indexed Color The GIF file format is an indexed color format that allows 256 colors (out of a possible 16 million colors!) Computing the file size for a GIF image, in bytes: (1)number of bytes to store the image pixels: (width * height * bit-depth) / 8 (2) number of bytes to store the color palette: num_colors * 3 (3) total number of bytes * : (width * height * bit-depth) / * num_colors (4) divide by 1,000 or 1,000,000 to convert to kilobytes or megabytes * There’s also a small amount of fixed overhead for storing file type, dimensions, etc.

Other Image Formats JPEG: wellesley.jpg - millions of colors, compressed, nice for photos, does not allow transparency PNG: cs110-logo.png - millions of colors, compressed, nice for line art and graphics, allows 8-bit transparency GIF: palette.gif - limited to 256 colors, nice for line art and graphics, allows 1-bit transparency, supports animation Never use BMP files! Generate all formats and compare with Fireworks!