Output models Drawing Rasterization Color models

Similar documents
Lecture 6: Output. Fall UI Design and Implementation 1

Today s hall of fame or shame candidate is the Domino s Pizza build-your-own-pizza process. You can try it yourself by going to the Domino s website

CS 160: Lecture 10. Professor John Canny Spring 2004 Feb 25 2/25/2004 1

Lecture 11: Toolkits. Fall UI Design and Implementation 1

Output in Window Systems and Toolkits

Lecture 11: Output 2. Fall UI Design and Implementation 1

3D graphics, raster and colors CS312 Fall 2010

Computer Graphics Fundamentals. Jon Macey

CS 160: Lecture 12. Professor John Canny Fall /13/2004 1

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

Tutorial 17: Using Visual Image

Representing Graphical Data

Web Design, 5 th Edition

From the dock at the left, right, top, or bottom of your monitor screen, open the Finder.

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

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?

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

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

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Animation & Rendering

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE IMAGE EDITING

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

INKSCAPE INTRODUCTION COMPONENTS OF INKSCAPE MENU BAR

Fig. A. Fig. B. Fig. 1. Fig. 2. Fig. 3 Fig. 4

Overview. Java2D. Graphics in Java2D: Colour Images Fonts. The bigger picture of Java Graphics: Java Advanced Imaging (JAI) API Java3D

MULTIMEDIA AND CODING

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

Computer Graphics Lecture 2

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

CMPT 165 Graphics Part 2. Nov 3 rd, 2015

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

The Definitive Guide to ImageMagick Michael Still

Creating a PDF/X-1a from InDesign

Buffers, Textures, Compositing, and Blending. Overview. Buffers. David Carr Virtual Environments, Fundamentals Spring 2005 Based on Slides by E.

DIS: Design and imaging software

Template Graphics Guidelines

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

BASICS OF MOTIONSTUDIO

Graphics Hardware and Display Devices

Representing Graphical Data

City of La Crosse Online Mapping Website Help Document

LinkMotion and CorelDraw 9, 10, 11, 12, X3, X4, X5, X6, X7 and X8:

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

12 APPLYING EFFECTS. Lesson overview

Computer Graphics. Chapter 4 Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Manual Bitmap Fixture v

Photoshop Introduction to The Shape Tool nigelbuckner This handout is an introduction to get you started using the Shape tool.

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools

Adobe Flash CS4 Part 1: Introduction to Flash

PROJECT THREE - EMPHASIS

Edupen Pro User Manual

Avid FX Tutorials. Understanding the Tutorial Exercises

Computer Graphics. Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

This quiz is closed book, closed notes. You have 80 minutes to complete it. Your name:

InDesign ACA Certification Test 50 terms hollymsmith TEACHER

Inkscape Tutorial. v2.0. Simon Andrews.

vinodsrivastava.com FLASH

1 Tutorials About the Tutorial Exercises

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

CS 563 Advanced Topics in Computer Graphics QSplat. by Matt Maziarz

2. If a window pops up that asks if you want to customize your color settings, click No.

Part 7 More fill styles and an effect

Merits of QT for developing Imaging Applications UI

Expression Design Lab Exercises

Week 5: Images & Graphics. Programming of Interactive Systems. JavaFX Images. images. Anastasia Bezerianos. Anastasia Bezerianos

Graphics Overview ECE2893. Lecture 19. ECE2893 Graphics Overview Spring / 15

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Generating Vectors Overview

How to create a prototype

How to work with text

Paint Tutorial (Project #14a)

Advanced Special Effects

Google LayOut 2 Help. Contents

EFILive V8 Gauge Editor

Three-Dimensional Shapes

III-6Exporting Graphics (Windows)

Fall UI Design and Implementation 1

This is not yellow. Image Files - Center for Graphics and Geometric Computing, Technion 2

IMAGE COMPRESSION USING FOURIER TRANSFORMS

3Picture Fundamentals

EXAMINATIONS 2016 TRIMESTER 2

12 APPLYING EFFECTS. Lesson overview

ITEC185. Introduction to Digital Media

How to create shapes. Drawing basic shapes. Adobe Photoshop Elements 8 guide

OpenGL: Open Graphics Library. Introduction to OpenGL Part II. How do I render a geometric primitive? What is OpenGL

4 working with SHAPE layers lesson overview

In this exercise you will be creating the graphics for the index page of a Website for children about reptiles.

Class Meeting 05 (Lecture 04) Objectives for this class meeting. Conduct vote on basic style of game for class project

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

Adobe illustrator Introduction

EECE 478. Learning Objectives. Learning Objectives. Rasterization & Scenes. Rasterization. Compositing

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

Discrete Techniques. 11 th Week, Define a buffer by its spatial resolution (n m) and its depth (or precision) k, the number of

Flash offers a way to simplify your work, using symbols. A symbol can be

Ai Adobe. Illustrator. Creative Cloud Beginner

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

Graphics. Setting Snap to Grid

:: MULTIMEDIA TOOLS :: CLASS NOTES

Adobe Illustrator CS Design Professional GETTING STARTED WITH ILLUSTRATOR

Format Type Support Thru. vector (with embedded bitmaps)

Transcription:

Output models Drawing Rasterization olor models Fall 2004 6.831 UI Design and Implementation 1 Fall 2004 6.831 UI Design and Implementation 2 omponents Graphical objects arranged in a tree with automatic redraw Example: Label object, Line object lso called: views, interactors, widgets, controls, retained graphics Strokes High-level drawing primitives: lines, shapes, curves, text Example: drawtext() method, drawline() method lso called: vector graphics, structured graphics Pixels 2D array of pixels lso called: raster, image, bitmap omponent model Each node and edge is a component node might have two subcomponents: circle and label Stroke model Graph view draws lines, rectangles and text Pixel model Graph view has pixel images of the nodes Fall 2004 6.831 UI Design and Implementation 3 Fall 2004 6.831 UI Design and Implementation 4 1

! " Layout Input Redraw Drawing order Heavyweight objects Device dependence omponents Strokes Pixels drawing rasterization Fall 2004 6.831 UI Design and Implementation 5 Fall 2004 6.831 UI Design and Implementation 6! # $ Drawing goes top down Draw self (using strokes or pixels) For each child component, If child intersects clipping region then intersect clipping region with childs bounding box recursively draw child with clip region = intersection D damaged region clip region Fall 2004 6.831 UI Design and Implementation 7 Fall 2004 6.831 UI Design and Implementation 8 2

%&'$!( )) Object moves *+,)) Double-buffering solves the flashing problem Screen Determine damaged region Redraw parent (children blink out!) Redraw children Fall 2004 6.831 UI Design and Implementation 9 Memory buffer Fall 2004 6.831 UI Design and Implementation 10 -. Drawing surface lso called drawable (X Windows), GDI (MS Win) Screen, memory buffer, print driver, file, remote screen Graphics context Encapsulates drawing parameters so they dont have to be passed with each call to a drawing primitive Font, color, line width, fill pattern, etc. oordinate system Origin, scale, rotation lipping region Drawing primitives Line, circle, ellipse, arc, rectangle, text, polyline, shapes $/ Is (0,0) the center of the top-left pixel, or is it the upper left corner of the pixel? MS Win: center of pixel Java: upper left corner Where is line (0,0) (10,0) actually drawn? MS Win: endpoint pixel excluded Java Graphics: pen hangs down and right Java Graphics2D: antialiased pen, optional pixel adjustments made for compatibility Where is empty rectangle (0,0) (10,10) drawn? MSWin: connecting those pixels Java: extends one row below and one column right Where is filled rectangle (0,0) (10,10) drawn? MSWin: 121 pixels Java: 100 pixels Fall 2004 6.831 UI Design and Implementation 11 Fall 2004 6.831 UI Design and Implementation 12 3

# -* $ 0 Simple ntialiased Subpixel rendering Pixel model is a rectangular array of pixels Each pixel is a vector (e.g., red, green, blue components), so pixel array is really 3 dimensional its per pixel (bpp) 1 bpp: black/white, or bit mask 4-8 bpp: each pixel is an index into a color palette 24 bpp: 8 bits for each color 32 bpp: 8 bits for each color + alpha channel olor components (e.g. RG) are also called channels or bands Pixel model can be arranged in many ways Separate planes (RRRGGG) vs. interleaved (RG RG RG) Scanned from top to bottom vs. bottom to top Fall 2004 6.831 UI Design and Implementation 13 Fall 2004 6.831 UI Design and Implementation 14 lpha is a pixels transparency from 0.0 (transparent) to 1.0 (opaque) so each pixel has red, green, blue, and alpha values Uses for alpha ntialiasing Nonrectangular images Translucent components lipping regions with antialiased edges Fall 2004 6.831 UI Design and Implementation 15,, itlt (bit block transfer) copies a block of pixels from one image to another Drawing images on screen Scrolling Double-buffering lipping with nonrectangular masks lpha compositing rules control how pixels from source and destination are combined More about this in a later lecture Fall 2004 6.831 UI Design and Implementation 16 4

((! GIF 8 bpp, palette uses 24-bit colors 1 color in the palette can be transparent (1-bit alpha channel) lossless compression suitable for screenshots, stroked graphics, icons JPEG 24 bpp, no alpha lossy compression: visible artifacts (dusty noise, moire patterns) suitable for photographs PNG lossless compression 1, 2, 4, 8 bpp with palette 24 or 48 bpp with true color 32 or 64 bpp with true color and alpha channel suitability same as GIF better than GIF, but no animation IE supports transparent pixels, but not full alpha transparency RG: cube Red, green, blue HSV: hexagonal cone Hue: kind of color ngle around cone Saturation: amount of pure color 0% = gray, 100% = pure color Value: brightness 0% = dark, 100% = bright HLS: double-hexagonal cone Hue, lightness, saturation Pulls up center of HSV model, so that only white has lightness 1.0 and pure colors have lightness 0.5 yan-magenta-yellow(-lack) Used for printing, where pigments absorb wavelengths instead of generating them Fall 2004 6.831 UI Design and Implementation 17 Fall 2004 6.831 UI Design and Implementation 18 "-1"- ")* Something youre drawing isnt appearing on the screen. Why not? Wrong place Wrong size Wrong color Wrong z-order Fall 2004 6.831 UI Design and Implementation 19 Fall 2004 6.831 UI Design and Implementation 20 5