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

Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformationSelvakumar Gna
 
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical dataRajapriya82
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standardsMani Kanth
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniquesMani Kanth
 
Clipping computer graphics
Clipping  computer graphicsClipping  computer graphics
Clipping computer graphicsShaishavShah8
 
Computer graphics - bresenham line drawing algorithm
Computer graphics - bresenham line drawing algorithmComputer graphics - bresenham line drawing algorithm
Computer graphics - bresenham line drawing algorithmRuchi Maurya
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithmMani Kanth
 
Raster scan system
Raster scan systemRaster scan system
Raster scan systemMohd Arif
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)Timbal Mayank
 
Unit 3
Unit 3Unit 3
Unit 3ypnrao
 
raster and random scan
raster and random scanraster and random scan
raster and random scanSonia Pahuja
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 

What's hot (20)

Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical data
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Clipping computer graphics
Clipping  computer graphicsClipping  computer graphics
Clipping computer graphics
 
Computer graphics - bresenham line drawing algorithm
Computer graphics - bresenham line drawing algorithmComputer graphics - bresenham line drawing algorithm
Computer graphics - bresenham line drawing algorithm
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithm
 
Raster scan system
Raster scan systemRaster scan system
Raster scan system
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Unit 3
Unit 3Unit 3
Unit 3
 
raster and random scan
raster and random scanraster and random scan
raster and random scan
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
Spline representations
Spline representationsSpline representations
Spline representations
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 

Similar to line attributes.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 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
 
Dimensioning System Engineering Graphics
Dimensioning System Engineering GraphicsDimensioning System Engineering Graphics
Dimensioning System Engineering GraphicsR A Shah
 

Similar to line attributes.pptx (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
 
Machine drawing
Machine drawingMachine drawing
Machine drawing
 
Contouring
ContouringContouring
Contouring
 
Dimensioning System Engineering Graphics
Dimensioning System Engineering GraphicsDimensioning System Engineering Graphics
Dimensioning System Engineering Graphics
 

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

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 

line attributes.pptx

  • 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.