SlideShare a Scribd company logo
1 of 15
BY
Ms. N. RUBA.,MCA.,M.Phil.,(Ph.D).,
Assistant Professor of CA,
Bon Securs College for Women,
Thanjavur.
COMPUTER GRAPHICS
Attributes of output primitives
Attributes of output primitives
❖ Any parameter that affects the way a primitive is to be
displayed id referred to as an attribute parameter.
❖ It is used to determine the fundamental characteristics of a
primitive.
❖ There are various types of attributes. In this presentation we
are going to learn about three attributes.the attributes are,
❖ Line attribute
❖ Curve attribute
❖ Colour and Gray scale level
Attributes
LINE ATTRIBUTES
✔ Basic attributes of a straight line segment are its type
,its width, and its colour.
LINE TYPE
▪ Solid lines
▪ Dashed lines
▪ Dotted lines
▪ Dashed dotted lines
❖ A dashed line could be displayed by generating an
inter dash spacing that is equal to the length of the
solid section. Both the length of the dashes and the
inter dash spacing are often specified as user option.
Attributes
.
❖A dotted line can be displayed by generating
very short dashes with the spacing equal to or
greater than the dash size. Similar methods are
used to produce other line-type variation.
❖To set line-type attributes in a graphics
application program, a user invokes the
function,
Set Line-type(It)
❖Where parameter It is assigned a positive integer
value of 1,2,3 or 4 to generate lines that are
respectively solid, dashed, dotted or dash-dotted.
LINE WIDTH
❖ Line-width parameter 1r is assigned a positive number
to indicate the relative width of the line to be
displayed. A value of 1 specifies a standard-width line
on.
❖ For line with slope magnitude greater than 1, we can
plot thick lines with horizontal spans, alternately
picking up pixels to the right and left of the line path.
❖ Problems with implementing width options using
horizontal or vertical pixel spans is that the method
produces lines whose ends are horizontal or vertical
regardless of the slope of the line.
LINE WIDTH
❖ Problems with implementing width options using
horizontal or vertical pixel spans is that the method
produces lines whose ends are horizontal or vertical
regardless of the slope of the line.
❖ This effect is more noticeable with very thick lines. We
can adjust the shape of the lines ends to give them a
better appearance by adding line caps.
❖ 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 square ends
that are perpendicular to the line path. If the specified
line has slope m, the square end of the thick line has
slope
-1/m.
❖Another line cap is the round cap obtained by
adding a filled semicircle to each butt cap. The
circular arcs are center on the line end-points and
have a diameter equal to the line thickness.
❖A third type of the line cap is the projecting
square cap. Here, we simply extend the line and
add butt cap that are positioned one-half of the
line width beyond the specified endpoints.
❖We can generate thick poly lines that are smoothly
joined at the cost of additional processing at the
segment end points.
❖ Can generate thick poly lines that are smoothly joined at
the cost of additional processing at the segment end
points.
❖ A miter join is accomplished by extending the outer
boundaries of each of the two lines until they meet.
❖ A rounded join is produced by capping the connection
between the two segments with a circular boundary
whose diameter is equal to the line width.
❖ And a bevel join is generated by displaying the line
segments with butt caps and filling in the triangular gap
where the segments meet.
PEN AND BRUSH OPTION
❖ Lines can be displayed with pen or brush selections.
Options in this category include shape, size and pattern.
❖ These shapes can be stored in a pixel mask that identifies
the array of pixels positioning that are to be set along the
line path.
❖ Lines generated with pen or brush shapes can be displayed
in various widths by changing the size of the mask.
LINE COLOR
❖ When a system provides colour or intensity option, a
parameter giving the current.
❖ Colour index is included in the list of system attribute
values. A poly line Routine displays a line in the current
colour by setting this colour value in the frame buffer at
pixel locations along the line path using the set pixel
procedure.
❖ The number of colour choices depends on the number of
bits available per pixel in the frame buffer. We set the
line colour value in graphics with the function,
Set poly line colour
index (Ie)
❖ CURVE ATTRIBUTES
❖ Parameter for curve attributes are the same as those for line
segments. We can display curves with varying colours, widths,
dotteddash, patterns and available pen or brush option.
COLOUR AND GRAYSCALE
COLOUR
❖ The raster scan display can produce wide range of colours,
while the random scan display offer only few colours.
❖ The possible colour options are numerically coded range from 0
through positive integers and CRT monitors convert the
numerical codes into intensity setting for the electron beam.
❖ If we use 6 bits per pixel in frame buffer, then we can produce
64 different colours.
❖ Similarly, if we use 24 bits per pixel in frame buffer , then we
can produce 17m colours. The colours system is called full
colour system.
GRAYSCALE
❖ In black and white monitors, colour functions can be used in
programs to set the shades of gray or gray scale.
❖ Numeric values from 0 to 1 can be used to specify the gray
scale levels which are then converted into binary codes.
COLOUR AND GRAYSCALE
COLOUR
❖ The raster scan display can produce wide range of colours,
while the random scan display offer only few colours.
❖ The possible colour options are numerically coded range from 0
through positive integers and CRT monitors convert the
numerical codes into intensity setting for the electron beam.
❖ If we use 6 bits per pixel in frame buffer, then we can produce
64 different colours.
❖ Similarly, if we use 24 bits per pixel in frame buffer , then we
can produce 17m colours. The colours system is called full
colour system.
Thank you

More Related Content

What's hot

Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical dataRajapriya82
 
Unit 3
Unit 3Unit 3
Unit 3ypnrao
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.Mohd Arif
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan systemshalinikarunakaran1
 
Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive SachiniGunawardana
 
Raster scan system
Raster scan systemRaster scan system
Raster scan systemMohd Arif
 
Graphics inputdevices
Graphics inputdevicesGraphics inputdevices
Graphics inputdevicesBCET
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Iftikhar Ahmad
 
Graphics software
Graphics softwareGraphics software
Graphics softwareMohd Arif
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphicsKALESHWAR KUMAR
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
3D Display Method
3D Display Method3D Display Method
3D Display MethodKhaled Sany
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Input devices in computer graphics
Input devices in computer graphicsInput devices in computer graphics
Input devices in computer graphicsAnu Garg
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clippingArvind Kumar
 

What's hot (20)

Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical data
 
Unit 3
Unit 3Unit 3
Unit 3
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Raster scan system
Raster scan systemRaster scan system
Raster scan system
 
Graphics inputdevices
Graphics inputdevicesGraphics inputdevices
Graphics inputdevices
 
Curve clipping
Curve clippingCurve clipping
Curve clipping
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
 
Graphics software
Graphics softwareGraphics software
Graphics software
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
3D Display Method
3D Display Method3D Display Method
3D Display Method
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Input devices in computer graphics
Input devices in computer graphicsInput devices in computer graphics
Input devices in computer graphics
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clipping
 

Similar to Attributes of Output Primitives in Computer Graphics

ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICSATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICSnehrurevathy
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer GraphicsAparna Joshi
 
Machine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptxMachine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptxMrNikhilMohanShinde
 
SESSION 1.pptx
SESSION 1.pptxSESSION 1.pptx
SESSION 1.pptxkonicha1
 
Pattern_Recognition_via_Character_Recogn.pptx
Pattern_Recognition_via_Character_Recogn.pptxPattern_Recognition_via_Character_Recogn.pptx
Pattern_Recognition_via_Character_Recogn.pptxEngRSMY2
 
Linesanddimensioning
LinesanddimensioningLinesanddimensioning
LinesanddimensioningMSTAMIL21
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit iiBalamurugan M
 
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 TransformPooja G N
 
An Efficient Arabic Text Spotting from Natural Scenes Images
An Efficient Arabic Text Spotting from Natural Scenes ImagesAn Efficient Arabic Text Spotting from Natural Scenes Images
An Efficient Arabic Text Spotting from Natural Scenes ImagesReham Marzouk
 
Bar Graphs And Histograms
Bar Graphs And HistogramsBar Graphs And Histograms
Bar Graphs And Histogramsmmeddin
 
Bar Graphs And Histograms
Bar Graphs And HistogramsBar Graphs And Histograms
Bar Graphs And Histogramsmmeddin
 
diagrammatic and graphical representation of data
 diagrammatic and graphical representation of data diagrammatic and graphical representation of data
diagrammatic and graphical representation of dataVarun Prem Varu
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniquesMani Kanth
 

Similar to Attributes of Output Primitives in Computer Graphics (20)

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
 
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICSATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer Graphics
 
Machine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptxMachine element Drawing, Machine drawing.pptx
Machine element Drawing, Machine drawing.pptx
 
SESSION 1.pptx
SESSION 1.pptxSESSION 1.pptx
SESSION 1.pptx
 
Pattern_Recognition_via_Character_Recogn.pptx
Pattern_Recognition_via_Character_Recogn.pptxPattern_Recognition_via_Character_Recogn.pptx
Pattern_Recognition_via_Character_Recogn.pptx
 
Linesanddimensioning
LinesanddimensioningLinesanddimensioning
Linesanddimensioning
 
An734
An734An734
An734
 
Worldexpo2007
Worldexpo2007Worldexpo2007
Worldexpo2007
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
 
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
 
drawing command.pptx
drawing command.pptxdrawing command.pptx
drawing command.pptx
 
An Efficient Arabic Text Spotting from Natural Scenes Images
An Efficient Arabic Text Spotting from Natural Scenes ImagesAn Efficient Arabic Text Spotting from Natural Scenes Images
An Efficient Arabic Text Spotting from Natural Scenes Images
 
UNIT-IV
UNIT-IVUNIT-IV
UNIT-IV
 
Bar Graphs And Histograms
Bar Graphs And HistogramsBar Graphs And Histograms
Bar Graphs And Histograms
 
Bar Graphs And Histograms
Bar Graphs And HistogramsBar Graphs And Histograms
Bar Graphs And Histograms
 
diagrammatic and graphical representation of data
 diagrammatic and graphical representation of data diagrammatic and graphical representation of data
diagrammatic and graphical representation of data
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Machine drawing
Machine drawingMachine drawing
Machine drawing
 
Contouring
ContouringContouring
Contouring
 

More from RubaNagarajan

Computer graphics-CRT.pptx
Computer graphics-CRT.pptxComputer graphics-CRT.pptx
Computer graphics-CRT.pptxRubaNagarajan
 
Matrix representation- CG.pptx
Matrix representation- CG.pptxMatrix representation- CG.pptx
Matrix representation- CG.pptxRubaNagarajan
 
Personality development.pptx
Personality development.pptxPersonality development.pptx
Personality development.pptxRubaNagarajan
 
TRANSFORMATION-CG.pptx
TRANSFORMATION-CG.pptxTRANSFORMATION-CG.pptx
TRANSFORMATION-CG.pptxRubaNagarajan
 
dda algorithm-cg.pptx
dda algorithm-cg.pptxdda algorithm-cg.pptx
dda algorithm-cg.pptxRubaNagarajan
 
Java files and io streams
Java files and io streamsJava files and io streams
Java files and io streamsRubaNagarajan
 
Java -Exception handlingunit-iv
Java -Exception handlingunit-ivJava -Exception handlingunit-iv
Java -Exception handlingunit-ivRubaNagarajan
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1RubaNagarajan
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1RubaNagarajan
 
Working principles of internet
Working principles of internetWorking principles of internet
Working principles of internetRubaNagarajan
 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computingRubaNagarajan
 
Cloud computing technology
Cloud computing technologyCloud computing technology
Cloud computing technologyRubaNagarajan
 

More from RubaNagarajan (19)

Computer graphics-CRT.pptx
Computer graphics-CRT.pptxComputer graphics-CRT.pptx
Computer graphics-CRT.pptx
 
Matrix representation- CG.pptx
Matrix representation- CG.pptxMatrix representation- CG.pptx
Matrix representation- CG.pptx
 
Personality development.pptx
Personality development.pptxPersonality development.pptx
Personality development.pptx
 
TRANSFORMATION-CG.pptx
TRANSFORMATION-CG.pptxTRANSFORMATION-CG.pptx
TRANSFORMATION-CG.pptx
 
dda algorithm-cg.pptx
dda algorithm-cg.pptxdda algorithm-cg.pptx
dda algorithm-cg.pptx
 
Java files and io streams
Java files and io streamsJava files and io streams
Java files and io streams
 
Java -Exception handlingunit-iv
Java -Exception handlingunit-ivJava -Exception handlingunit-iv
Java -Exception handlingunit-iv
 
Java Programming
Java Programming Java Programming
Java Programming
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Constructors in C++
Constructors in C++Constructors in C++
Constructors in C++
 
Risks in cc
Risks in ccRisks in cc
Risks in cc
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaver
 
Working principles of internet
Working principles of internetWorking principles of internet
Working principles of internet
 
Coreldraw
CoreldrawCoreldraw
Coreldraw
 
C programming
C programmingC programming
C programming
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computing
 
Cloud computing technology
Cloud computing technologyCloud computing technology
Cloud computing technology
 

Recently uploaded

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

Attributes of Output Primitives in Computer Graphics

  • 1. BY Ms. N. RUBA.,MCA.,M.Phil.,(Ph.D)., Assistant Professor of CA, Bon Securs College for Women, Thanjavur. COMPUTER GRAPHICS Attributes of output primitives
  • 2. Attributes of output primitives ❖ Any parameter that affects the way a primitive is to be displayed id referred to as an attribute parameter. ❖ It is used to determine the fundamental characteristics of a primitive. ❖ There are various types of attributes. In this presentation we are going to learn about three attributes.the attributes are, ❖ Line attribute ❖ Curve attribute ❖ Colour and Gray scale level
  • 3. Attributes LINE ATTRIBUTES ✔ Basic attributes of a straight line segment are its type ,its width, and its colour. LINE TYPE ▪ Solid lines ▪ Dashed lines ▪ Dotted lines ▪ Dashed dotted lines ❖ A dashed line could be displayed by generating an inter dash spacing that is equal to the length of the solid section. Both the length of the dashes and the inter dash spacing are often specified as user option.
  • 4. Attributes . ❖A dotted line can be displayed by generating very short dashes with the spacing equal to or greater than the dash size. Similar methods are used to produce other line-type variation. ❖To set line-type attributes in a graphics application program, a user invokes the function, Set Line-type(It) ❖Where parameter It is assigned a positive integer value of 1,2,3 or 4 to generate lines that are respectively solid, dashed, dotted or dash-dotted.
  • 5. LINE WIDTH ❖ Line-width parameter 1r is assigned a positive number to indicate the relative width of the line to be displayed. A value of 1 specifies a standard-width line on. ❖ For line with slope magnitude greater than 1, we can plot thick lines with horizontal spans, alternately picking up pixels to the right and left of the line path. ❖ Problems with implementing width options using horizontal or vertical pixel spans is that the method produces lines whose ends are horizontal or vertical regardless of the slope of the line.
  • 6. LINE WIDTH ❖ Problems with implementing width options using horizontal or vertical pixel spans is that the method produces lines whose ends are horizontal or vertical regardless of the slope of the line. ❖ This effect is more noticeable with very thick lines. We can adjust the shape of the lines ends to give them a better appearance by adding line caps. ❖ 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 square ends that are perpendicular to the line path. If the specified line has slope m, the square end of the thick line has slope -1/m.
  • 7. ❖Another line cap is the round cap obtained by adding a filled semicircle to each butt cap. The circular arcs are center on the line end-points and have a diameter equal to the line thickness. ❖A third type of the line cap is the projecting square cap. Here, we simply extend the line and add butt cap that are positioned one-half of the line width beyond the specified endpoints. ❖We can generate thick poly lines that are smoothly joined at the cost of additional processing at the segment end points.
  • 8. ❖ Can generate thick poly lines that are smoothly joined at the cost of additional processing at the segment end points. ❖ A miter join is accomplished by extending the outer boundaries of each of the two lines until they meet. ❖ A rounded join is produced by capping the connection between the two segments with a circular boundary whose diameter is equal to the line width. ❖ And a bevel join is generated by displaying the line segments with butt caps and filling in the triangular gap where the segments meet.
  • 9. PEN AND BRUSH OPTION ❖ Lines can be displayed with pen or brush selections. Options in this category include shape, size and pattern. ❖ These shapes can be stored in a pixel mask that identifies the array of pixels positioning that are to be set along the line path. ❖ Lines generated with pen or brush shapes can be displayed in various widths by changing the size of the mask.
  • 10. LINE COLOR ❖ When a system provides colour or intensity option, a parameter giving the current. ❖ Colour index is included in the list of system attribute values. A poly line Routine displays a line in the current colour by setting this colour value in the frame buffer at pixel locations along the line path using the set pixel procedure. ❖ The number of colour choices depends on the number of bits available per pixel in the frame buffer. We set the line colour value in graphics with the function, Set poly line colour index (Ie)
  • 11. ❖ CURVE ATTRIBUTES ❖ Parameter for curve attributes are the same as those for line segments. We can display curves with varying colours, widths, dotteddash, patterns and available pen or brush option.
  • 12. COLOUR AND GRAYSCALE COLOUR ❖ The raster scan display can produce wide range of colours, while the random scan display offer only few colours. ❖ The possible colour options are numerically coded range from 0 through positive integers and CRT monitors convert the numerical codes into intensity setting for the electron beam. ❖ If we use 6 bits per pixel in frame buffer, then we can produce 64 different colours. ❖ Similarly, if we use 24 bits per pixel in frame buffer , then we can produce 17m colours. The colours system is called full colour system.
  • 13. GRAYSCALE ❖ In black and white monitors, colour functions can be used in programs to set the shades of gray or gray scale. ❖ Numeric values from 0 to 1 can be used to specify the gray scale levels which are then converted into binary codes.
  • 14. COLOUR AND GRAYSCALE COLOUR ❖ The raster scan display can produce wide range of colours, while the random scan display offer only few colours. ❖ The possible colour options are numerically coded range from 0 through positive integers and CRT monitors convert the numerical codes into intensity setting for the electron beam. ❖ If we use 6 bits per pixel in frame buffer, then we can produce 64 different colours. ❖ Similarly, if we use 24 bits per pixel in frame buffer , then we can produce 17m colours. The colours system is called full colour system.