SlideShare a Scribd company logo
Line Attributes
•Line type
•Line width
•Pen and Brush Options
•Line Color
LINE ATTRIBUTES
 Basic attributes of a straight line segment are its type,
its width and its color.
 In some graphics packages, lines can also be displayed
using selected pen or brush options.
Line Type:
Line-type attribute include solid lines, dashed lines ,
and dotted lines.
 To set line type attributes in a PHIGS application program ,
a user involves the function
setLinetype( lt)
where parameter lt is assigned a positive integer value.
Line width:
A line-width options depends on the capabilities of
the output device. A heavy line on a video monitor could be
displayed as adjacent parallel lines, while a pen plotter
might require pen changes.
We set the line-width attribute with the command:
setLinewidthscaleFactor (l w)
 There are three differents line cap they are
 Butt cap
 Round cap
 Projecting square cap
Butt cap:
One kind of line cap is the butt cap obtained by adjusting
the end positions of the component parallel lines so that the thick
line is displayed with the square end of the thick line has slope -
1/m.
Round cap:
Another line cap is the round cap obtained by adding a
filled semicircle to each butt cap. The circular are centered on the
line endpoints and have a diameter equal to the line thickness.
Projecting square cap:
Extend the line and add buttcap.
 Displaying thick lines using horizontal and vertical
pixel spans.
 Three possible methods for smoothly joining two line
segments.
 A miter join is accomplished by extending the outer
boundaries of each of the two lines until meet.
 A round join is produced by capping the connection
between the two segment with a circular boundary
whose diameter is equal to the line width.
 Diameter = line width
 A bevel join is generated by displaying the line with
butt caps and filling in the triangular gap where the
segments meet. If the angles between two connected
line segments is very small.
Pen and Brush
 Lines can be displayed with pen or brush selections.
 Options in the category include shape, size, an
patterns.
 Some possible pen or brush shapes
Line Color
 When system provides color(or intensity) options, a
parameter giving the current color index is included in
the list of system- attribute values.
 A polyline routine display a line in the current color by
setting this color value in the frame buffer at pixel
loctaions along the line path using the setpixel
procedure.
 We set the line color value in PHIGS with the function
setPolylineColourIndex(lc)

More Related Content

What's hot

Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive
SachiniGunawardana
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
Balamurugan M
 
Video display devices
Video display devicesVideo display devices
Video display devices
shalinikarunakaran1
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 
Raster Scan display
Raster Scan displayRaster Scan display
Raster Scan display
Lokesh Singrol
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
Kamal Acharya
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
Mani Kanth
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
Somya Bagai
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
Aparna Joshi
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
Aparna Joshi
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
Raster scan system
Raster scan systemRaster scan system
Raster scan systemMohd Arif
 
Hidden surfaces
Hidden surfacesHidden surfaces
Hidden surfacesMohd Arif
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
Shami Al Rahad
 
Matrix representation- CG.pptx
Matrix representation- CG.pptxMatrix representation- CG.pptx
Matrix representation- CG.pptx
RubaNagarajan
 
Transform coding
Transform codingTransform coding
Transform coding
Nancy K
 
3D Display
3D Display3D Display
3D Display
Toushik Paul
 

What's hot (20)

Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
Raster Scan display
Raster Scan displayRaster Scan display
Raster Scan display
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
Unit 3
Unit 3Unit 3
Unit 3
 
Raster scan system
Raster scan systemRaster scan system
Raster scan system
 
Hidden surfaces
Hidden surfacesHidden surfaces
Hidden surfaces
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Matrix representation- CG.pptx
Matrix representation- CG.pptxMatrix representation- CG.pptx
Matrix representation- CG.pptx
 
Transform coding
Transform codingTransform coding
Transform coding
 
3D Display
3D Display3D Display
3D Display
 

Similar to Attributes of output primitive(line attributes)

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
SathishShetty13
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
Ankit Garg
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer Graphics
Aparna Joshi
 
Digital Coding of Images.pptx
Digital Coding of Images.pptxDigital Coding of Images.pptx
Digital Coding of Images.pptx
emsResulzade1
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
BhagyasriPatel2
 
Autocad commands
Autocad commandsAutocad commands
Autocad commands
Amit Kumar
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
Mani Kanth
 
Lecture 2 computer graphics
Lecture 2 computer graphicsLecture 2 computer graphics
Lecture 2 computer graphics
poleyseugenio
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
SungaleliYuen
 
R Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar PlotsR Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar Plots
Rsquared Academy
 
Machine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptxMachine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptx
MrNikhilMohanShinde
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
RamanathanSabesan
 
Detecting text from natural images with Stroke Width Transform
Detecting text from natural images with Stroke Width TransformDetecting text from natural images with Stroke Width Transform
Detecting text from natural images with Stroke Width Transform
Pooja G N
 
Higher - Storing graphics
Higher - Storing graphicsHigher - Storing graphics
Higher - Storing graphics
missstevenson01
 
RastervsVector.ppt
RastervsVector.pptRastervsVector.ppt
RastervsVector.ppt
DeepeshJain75
 
Character Attribute in computer graphics
Character Attribute in computer graphicsCharacter Attribute in computer graphics
Character Attribute in computer graphics
HariTharshiniBscIT1
 
QGIS Tutorial 1
QGIS Tutorial 1QGIS Tutorial 1
QGIS Tutorial 1
niloyghosh1984
 
Scene text recognition in mobile applications by character descriptor and str...
Scene text recognition in mobile applications by character descriptor and str...Scene text recognition in mobile applications by character descriptor and str...
Scene text recognition in mobile applications by character descriptor and str...
eSAT Journals
 
Types of Technical & Engineering Drawing Lines and Their Uses
Types of Technical & Engineering Drawing Lines and Their UsesTypes of Technical & Engineering Drawing Lines and Their Uses
Types of Technical & Engineering Drawing Lines and Their Uses
terihagh
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extractionRushin Shah
 

Similar to Attributes of output primitive(line attributes) (20)

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer Graphics
 
Digital Coding of Images.pptx
Digital Coding of Images.pptxDigital Coding of Images.pptx
Digital Coding of Images.pptx
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
 
Autocad commands
Autocad commandsAutocad commands
Autocad commands
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Lecture 2 computer graphics
Lecture 2 computer graphicsLecture 2 computer graphics
Lecture 2 computer graphics
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
 
R Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar PlotsR Data Visualization Tutorial: Bar Plots
R Data Visualization Tutorial: Bar Plots
 
Machine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptxMachine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptx
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
 
Detecting text from natural images with Stroke Width Transform
Detecting text from natural images with Stroke Width TransformDetecting text from natural images with Stroke Width Transform
Detecting text from natural images with Stroke Width Transform
 
Higher - Storing graphics
Higher - Storing graphicsHigher - Storing graphics
Higher - Storing graphics
 
RastervsVector.ppt
RastervsVector.pptRastervsVector.ppt
RastervsVector.ppt
 
Character Attribute in computer graphics
Character Attribute in computer graphicsCharacter Attribute in computer graphics
Character Attribute in computer graphics
 
QGIS Tutorial 1
QGIS Tutorial 1QGIS Tutorial 1
QGIS Tutorial 1
 
Scene text recognition in mobile applications by character descriptor and str...
Scene text recognition in mobile applications by character descriptor and str...Scene text recognition in mobile applications by character descriptor and str...
Scene text recognition in mobile applications by character descriptor and str...
 
Types of Technical & Engineering Drawing Lines and Their Uses
Types of Technical & Engineering Drawing Lines and Their UsesTypes of Technical & Engineering Drawing Lines and Their Uses
Types of Technical & Engineering Drawing Lines and Their Uses
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 

More from shalinikarunakaran1

Data Communication and Networking ( Guided and Unguided Media)
Data Communication and Networking ( Guided and Unguided Media)Data Communication and Networking ( Guided and Unguided Media)
Data Communication and Networking ( Guided and Unguided Media)
shalinikarunakaran1
 
Character generation
Character generationCharacter generation
Character generation
shalinikarunakaran1
 
Introduction , surveuy on cg
Introduction , surveuy on cgIntroduction , surveuy on cg
Introduction , surveuy on cg
shalinikarunakaran1
 
Java tokens
Java tokensJava tokens
Java tokens
shalinikarunakaran1
 
Java program structure
Java program structureJava program structure
Java program structure
shalinikarunakaran1
 
Simple java program
Simple java programSimple java program
Simple java program
shalinikarunakaran1
 
How java differs from c and c++
How java differs from c and c++How java differs from c and c++
How java differs from c and c++
shalinikarunakaran1
 
JAVA HISTORY
JAVA HISTORYJAVA HISTORY
JAVA HISTORY
shalinikarunakaran1
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
shalinikarunakaran1
 

More from shalinikarunakaran1 (9)

Data Communication and Networking ( Guided and Unguided Media)
Data Communication and Networking ( Guided and Unguided Media)Data Communication and Networking ( Guided and Unguided Media)
Data Communication and Networking ( Guided and Unguided Media)
 
Character generation
Character generationCharacter generation
Character generation
 
Introduction , surveuy on cg
Introduction , surveuy on cgIntroduction , surveuy on cg
Introduction , surveuy on cg
 
Java tokens
Java tokensJava tokens
Java tokens
 
Java program structure
Java program structureJava program structure
Java program structure
 
Simple java program
Simple java programSimple java program
Simple java program
 
How java differs from c and c++
How java differs from c and c++How java differs from c and c++
How java differs from c and c++
 
JAVA HISTORY
JAVA HISTORYJAVA HISTORY
JAVA HISTORY
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
 

Recently uploaded

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 

Recently uploaded (20)

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

Attributes of output primitive(line attributes)

  • 1. Line Attributes •Line type •Line width •Pen and Brush Options •Line Color
  • 2. LINE ATTRIBUTES  Basic attributes of a straight line segment are its type, its width and its color.  In some graphics packages, lines can also be displayed using selected pen or brush options. Line Type: Line-type attribute include solid lines, dashed lines , and dotted lines.
  • 3.
  • 4.  To set line type attributes in a PHIGS application program , a user involves the function setLinetype( lt) where parameter lt is assigned a positive integer value. Line width: A line-width options depends on the capabilities of the output device. A heavy line on a video monitor could be displayed as adjacent parallel lines, while a pen plotter might require pen changes. We set the line-width attribute with the command: setLinewidthscaleFactor (l w)
  • 5.  There are three differents line cap they are  Butt cap  Round cap  Projecting square cap Butt cap: One kind of line cap is the butt cap obtained by adjusting the end positions of the component parallel lines so that the thick line is displayed with the square end of the thick line has slope - 1/m. Round cap: Another line cap is the round cap obtained by adding a filled semicircle to each butt cap. The circular are centered on the line endpoints and have a diameter equal to the line thickness. Projecting square cap: Extend the line and add buttcap.
  • 6.
  • 7.  Displaying thick lines using horizontal and vertical pixel spans.  Three possible methods for smoothly joining two line segments.  A miter join is accomplished by extending the outer boundaries of each of the two lines until meet.  A round join is produced by capping the connection between the two segment with a circular boundary whose diameter is equal to the line width.  Diameter = line width
  • 8.  A bevel join is generated by displaying the line with butt caps and filling in the triangular gap where the segments meet. If the angles between two connected line segments is very small.
  • 9. Pen and Brush  Lines can be displayed with pen or brush selections.  Options in the category include shape, size, an patterns.  Some possible pen or brush shapes
  • 10.
  • 11.
  • 12. Line Color  When system provides color(or intensity) options, a parameter giving the current color index is included in the list of system- attribute values.  A polyline routine display a line in the current color by setting this color value in the frame buffer at pixel loctaions along the line path using the setpixel procedure.  We set the line color value in PHIGS with the function setPolylineColourIndex(lc)