Professional Documents
Culture Documents
Attribute of Output
Primitives
Lecture 2
2 30/9/2008
Lecture 2
3 30/9/2008
Definition
Parameter that affects the way a primitive will be
displayed
Line Attribute
. Type
. Width
. Color
. Pen & Brush
Lecture 2
4 30/9/2008
Lecture 2
5 30/9/2008
Line Attribute
Type
. Solid
. Dotted – very short dash with spacing equal to
or greater than dash itself
. Dashed – displayed by generating an interdash
spacing
Lecture 2
6 30/9/2008
Lecture 2
7 30/9/2008
Lecture 2
8 30/9/2008
Width
. 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
Lecture 2
9 30/9/2008
Line Attribute
Width
Lecture 2
10 30/9/2008
Lecture 2
11 30/9/2008
Lecture 2
12 30/9/2008
Lecture 2
13 30/9/2008
Lecture 2
14 30/9/2008
Lecture 2
15 30/9/2008
Line Attribute
Pen and Brush
. 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.
Lecture 2
16 30/9/2008
Curve Attribute
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
Lecture 2
17 30/9/2008
Curve Attribute
Lecture 2
18 30/9/2008
Lecture 2
20 30/9/2008
Lecture 2
21 30/9/2008
Lecture 2
22 30/9/2008
Lecture 2
23 30/9/2008
Intensity = 0.5[min(r,g,b)+max(r,g,b)]
Lecture 2
24 30/9/2008
AREA-FILL ATTRIBUTES
Options for filling a defined region include a choice
between a solid color or a pattern fill and choices for
particular colors and patterns
Fill Styles
•Areas are displayed with three basic fill styles: hollow
with a color border, filled with a solid color, or filled
with a specified pattern or design. A basic fill style is
selected in a PHIGS program with the function
•setInteriorStyle(fs)
Lecture 2
25 30/9/2008
Lecture 2
26 30/9/2008
Lecture 2
27 30/9/2008
Pattern Fill
setPatternRepresentation(ws,pi,nx,ny,cp)
Lecture 2
29 30/9/2008
Lecture 2
30 30/9/2008
Lecture 2