ATTRIBUTE OF OUTPUT PRIMITIVES. Attribute of Output Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 2 Definition Line Attribute Curve Attribute.

Slides:



Advertisements
Similar presentations
RAPTOR Syntax and Semantics By Lt Col Schorsch
Advertisements

CHAPTER 3 2D GRAPHICS ALGORITHMS
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Client-Side Internet and Web Programming
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
© 2001 By Default! A Free sample background from Slide 1 Attributes of Output Primitives Definition Parameter that affects.
CMPE 466 COMPUTER GRAPHICS Chapter 5 Attributes of Graphics Primitives Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth.
Informationsteknologi Monday, October 29, 2007Computer Graphics - Class 21 Today’s class Graphics programming Color.
Output Primitives Computer Graphics.
CST 494/598 Computer Graphics Anshuman Razdan i3dea.asu.edu/razdan.
Thematic Mapping ArcView_module_3 May 12, 1:30 PM.
Image Representation.
1.Introduction to Computer Graphics GMR lab. What is computer garphics? The generation of graphical output using a computer Refers to creation, Storage.
1/24/20061 Fill-Area Algorithms and Functions. 1/24/20062 Learning Objectives OpenGL state variables Color and gray scale Color functions Point attributes.
COMPUTER GRAPHICS Prepared by S.MAHALAKSHMI Asst. Prof(Sr) / SCSE VIT University.
CGMB214: Introduction to Computer Graphics
Dr. S.M. Malaek Assistant: M. Younesi
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 26 – CheckWriter Application Introducing Graphics.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Tools for Raster Displays CVGLab Goals of the Chapter To describe pixmaps and useful operations on them. To develop tools for copying, scaling, and rotating.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
Graphics Graphics Korea University cgvr.korea.ac.kr Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실.
More Basic XHTML Module 2: XHTML Basics LESSON 2.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
Chapter 2 Drawing Objects in Adobe Flash. 1.Use the Flash drawing and alignment tools 2.Select objects and apply colors 3.Work with drawn objects 4.Work.
Color and Resolution Introduction to Digital Imaging.
1 Introduction Line attribute Color and gray scale Area filled attribute Anti-aliasing.
Ch 2 Graphics Programming page 1 CSC 367 Coordinate Systems (2.1.2) Device coordinates, or screen coordinates (pixels) put limitations on programmers and.
INT 840E Computer graphics Introduction & Graphic’s Architecture.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
© 2011 Delmar, Cengage Learning Chapter 2 Drawing Objects in Adobe Flash.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Advanced 2D Design Concepts Guilford County Sci Vis V
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
Introduction to Computer Graphics
Attributes of Graphics Primitives Hearn & Baker Chapter 4 Some slides are taken from Robert Thomsons notes.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
CISC 110 Day 3 Introduction to Computer Graphics.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand concepts used to create digital graphics.
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
Attributes of Graphics Primitives Chapter 4
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Pattern filling in scan-conversion Antialiasing
CSS Box Model.
Attributes of Graphics Primitives Hearn & Baker Chapter 4
CSS Box Model.
CSS Layouts CH 13.
Images In Matlab.
Basic Desktop Terminology
CSS Box Model.
Ch2: Data Representation
Colour Theories.
o عَلَّمَهُ الْبَيَانَ
Programming Graphic LCD
Useful for centering the image.
Programming Graphic LCD
Two ways to discuss color 1) Addition 2) Subtraction
The Building Blocks of Artworks
Programming Graphic LCD
Programming Graphic LCD
Programming Graphic LCD
Programming Graphic LCD
CSS Box Model.
Primitive Drawing Algorithm
Primitive Drawing Algorithm
Presentation transcript:

ATTRIBUTE OF OUTPUT PRIMITIVES

Attribute of Output Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 2 Definition Line Attribute Curve Attribute Color And Gray Scale Level Area Filled Attribute Text and Characters Bundled Attributes

Attributes of Output Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 3 Definition Parameter that affects the way a primitive will be displayed Line Attribute Line Type Line Width Pen and Brush Options Line Color

Line Attribute 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 4 Type :setLinetype (lt). Solid. Dotted – very short dash with spacing equal to or greater than dash itself. Dashed – displayed by generating an interdash spacing

Line Attribute 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 5 Width : setLinewidthScaleFactor(lw). Specify in pixels and proportion of a standard line width.. Thicker line can be produced by.. Adding extra pixel vertically when |m| < 1. Adding extra pixel horizontally when |m| > 1. Issues:. Line have different thickness on the slope. Problem with. End of the line. Joining the two lines (polygon)

Line Caps 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 6

Line Joins 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 7

Pen and Brush option 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 8. The selected “pen” or “brush” determine the way a line will be drawn.. Pens and brushes have size, shape, color and pattern attribute.. Pixel mask is applied in both of them.

Curve Attribute 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 9 Similar to line : type + width Thicker curves can be produced by: 1. Plotting additional pixel 2. Filling the space between two concentric circles. 3. Using thicker pen or brush

Line color 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 10 setPolylineColourIndex (lc)

COLOR AND GRAY SCALE LEVEL 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 11 Color  Colors are represented by colors codes which are positive integers.  Color information is stored in frame buffer or in separate table and use pixel values as index to the color table.  Two ways to store color information : 1. Direct 2. Indirect

COLOR Direct : color codes directly in the frame buffer 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 12

COLOR Indirect : color codes in a separate table and use pixel values as an index into this table 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 13

COLOR Lookup Table 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 14 EIGHT COLOUR CODE FOR THREE BIT PER PIXEL FRAME BUFFER ColorStored Color values in frame BufferDisplayed Color 0000Black 1001Blue 2010Green 3011Cyan 4100Red 5101Magenta 6110Yellow 7111White

COLOR Lookup Table 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 15 setColourRepresentation (ws, ci, colorptr)

GRAY SCALE LEVEL 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 16 INTENSITY CODES FOR A FOUR LEVEL GRAYSCALE SYSTEM Intensity codes Stored intensity values in frame Buffer Displayed Grayscale Black Dark Gray Light Gray White

AREA FILLED ATTRIBUTE 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 17. Option for filling a defined region is whether solid, pattern and colors. Fill Styles. Three basic fill styles are:. hollow with color border.. interior color is same with background

AREA FILLED ATTRIBUTE 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 18. filled with a solid color.. color up to and including the border pattern.. control by other table

Filled-Area Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 19

Filled-Area Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 20

Filled-Area Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 21

Filled-Area Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 22

Filled-Area Primitives 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 23

Text and Characters 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 24 Controlled by attributes such as font, size, color and orientation. Text Attributes setTextFont(tf) setTextColourIndex(tc) SetCharacterHeight (ch) SetCharacterExpansionFactor(cw) setCharacterSpacing(cs) setCharacterUpVector(upvect) setTextPath (tp) setTextPrecision (tpr) setTextAlignment (h,v)

MARKER ATTRIBUTES setMarkerSizeScaleFactor(ms) setPolymarkerColourIndex(mc) 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 25

Bundled Attributes 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 26 When each function reference a single attribute that specify exactly how primitive to be displayed ; then its called individual (unbundled attribute)..Bundled attributes is where a set of attributes value can be chosen by specifying the appropriate index table..The table for each primitive that defines group of attribute values is called bundled table..Attribute that can be bundled are:. Bundled Line Attribute. Bundled Area-Fill Attribute. Bundled Text Attribute. Bundled Marker Attribute

Bundled line attributes setPolylineRepresentation (ws, li, lt, lw, lc) Parameter ws is the workstation identifier and line index parameter li defines the bundle table position. Parameter lt, lw, lc are then bundled and assigned values to set the line type, line width, and line color specifications for designated table index. 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 27

Bundle area fill Attributes setInteriorRepresentation (ws, fi, fs, pi, fc) Which defines the attributes list corresponding to fill index fi on workstation ws. Parameter fs, pi and fc are assigned values for the fill style pattern index and fill color. 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 28

Bundled Text Attributes and marker Attributes setTextRepresentation (ws, ti, tf, tp, te, ts, tc) bundles values for text font, precision, expansion,factor size and color in a table position for work station ws that is specified by value assigned to text index parameter ti. setPolymarkerRepresentation (ws, mi, mt, ms, mc) 30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 29

30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 30 Output Primitive Type Associated Attribute Attribute Setting Function Bundled Attribute Function Line Type Width Color setLinetype setLineWidthScaleFactor set PolylineColourIndex set PolylineIndex set PolylineRepresentation Fill Area Fill Style Fill Color Pattern setInteriorStyle setInteriorColorIndex setInteriorStyleIndex setPatternRepresentation setpatternsize setPatternReferencePoint setInteriorIndex setInteriorRepresentation

30/9/2008 A.Aruna/Assistant professor/IT/SNSCE 31 Output Primitive Type Associated Attribute Attribute Setting Function Bundled Attribute Function Text Font Color Size Orientation setTextFonr setTextCo1ourIndex setcharacterHeight setCharacterExpansionFactor setCharaccerUpVector setTextPath setTextAlignment setTextIndex setTextRepresentation Marker Type Size Color setMarkeirype setMarkerSizeScalePactor setPolyrnarkerColourIndex setPolyrnarkerIndex setPolyrnarkerRepresentati on