SlideShare a Scribd company logo
1 of 10
Attributes of Output Primitives
Any parameter that affects the way a primitive is to be display is referred to as an
attribute parameter.
Some attribute parameters such as Color and Size
Line Attributes
1. Line Type
Line type Attributes are solid lines, dashed lines and dotted lines.
We modify a line drawing algorithm to generate such lines by setting the length and
spacing of displayed solid sections along the line path.
Function: setlineType(lt)
lt is assigned a positive integer of 1-Solid, 2-Dashed, 3-Dotted, 4-Dash dotted
Raster line algorithm display linetype attributes by plotting pixel spans.
Pixel counts for the span length and interspan spacing can be specified in a pixel mask,
which is a string containing the digits 1 and 0.
2. Line Width
Implementation of line width options depends on the capabilities of the output device.
Line width determines the thickness of line.
Function: setlineWidthScaleFactor(lw)
Lw is assigned positive integer of 1-standard line, 0.5- half of the standard line, >1-
thickness than the standard line.
Thickness lines are generated quickly by plotting horizontal or vertical pixel spans
Line caps
Adjusting the shape of the line ends to give them a better appearance.
Butt cap : Adjusting the endpoints of the component parallel lines. So that the thick line
is display with square ends that as perpendicular to the line path.
Round cap: Adding a filled semi circle to each butt caps.
Projecting Square cap: Extend the line and add butt caps.
Three possible methods for smoothly joining the two line segments of poly lines.
Mitter join : Extending the outer boundaries of each of the two lines until they meet.
Round join : Caping the connection between the two segments with a circular boundary
who diameter is equal to the line width.
Bevel join : Displaying the line segments with butt caps and filling in the triangular cap
where the segments meet.
3. Pen and Brush Options
Lines generated with pen or brush shapes can be displayed in various widths by changing
the size of the mask.
Options in this category include shape, size and pattern.
4. Line Color
When a system provides color options, a parameter giving the current color index is
included in the list of system attribute values.
The number of color choices depends on the number of bits available per pixel in the
frame buffer.
Function: setPolylineColourIndex(lc);
Area Fill Attributes
Options for filling a defined region include choice between a solid color or patterned fill.
1. Fill styles
Areas are display with three basic fill styles.
• Hollow with color border
• Filled with a solid color
• Filled with a specified pattern or design
Function: setInteriorStyle(fs)
Fs – 1-hollow, 2-solid, 3-pattern, 4- hatch
Another value for fill style hatch, which is used to fill a area with selected hatching
patterns(parallel lines or crossed lines)
Function for choose color for solid interior or Hollow area
setInteriorColourIndex(fc)
2. Pattern Fill
We select fill patters with function setInteriorStyleIndex(pi)
Where pattern index parameter pi specifies a table position. We use the function
setPatternRepresentation(ws,pi,nx,ny,cp)
Where cp is two dimensional array of color codes with nx columns and ny rows, ws is
workstation, pi is patternindex.
Example setPatternRepresentation(1,1,2,2,cp)
4 0
0 4
The process of filling an area with a rectangular pattern is called tiling.
3. Soft fill
Fill color is combined with the background colors are referred to as soft fill or tint fill
algorithms.
Linear soft fill algorithm repaints an area that was originally painted by merging a
foreground color F with a single Background color B, where F not equal to B
Function: p=tF+(1-t)B
Where t is transparency factor value between 0 and 1 for each pixel.
T can be calculated using on of the RGB Components.
T=(Pk –Bk)/ (Fk-Bk)
Where k= R, G, or B and Fk not equal to Bk
We can minimize the round off error by selecting the component with the largest
difference between F and B.
Soft fill procedures can be applied to an area whose foreground color is to be merged
with multiple background color areas such as checkered pattern.
Function : P= t0F + t1B1+(1-t0-t1)B2
Character Attributes
The appearance of displayed characters is controlled by attributes such as font, size, color
and orientation.
1. Text Attributes
i. Choice of font (or typeface), which is a set of characters with a particular design style
such as courier, arial, times new roman, etc.
The characters is a selected for can also be displayed with assorted underlying styles
(solid,dotted,double) in boldface, in italics.
Function: setTextFont(tf)
ii. Color settings for displayed text are stored in the system attribute list and used by the
procedure the load character definition into the framebuffer.
Function: setTextColourIndex(tc)
iii. we can adjust text size by scalling the overall dimensions ( height and width) of
characters or by scaling only the character width.
1 point = 0.013837 inch
Text size can be adjusted using the Function setCharacterHeight(ch).
The width only of text can be set with the function setCharacterExpansionFactor(cw).
Spacing between Characters is controlled separately with setChatacterSpacing(cs).
iv. The Orientation for a displayed character string is set according to the direction of the
character upvector: Function: setCharacterUpVector(upvect)
where upvect is the orientation from base line (x) to cap line (y)
Example : upvect(1,1,) – the direction of the up vector is 450
v. Text path function : setTextpath(tp) where tp- right, left ,up or down
vi. Text Alignment – Function : setTExtAlignment(h,v)
h-horizantal alignment(left, center and right)
v-vertical alignment( top, cap, half, base and bottom)
vii. Precision
for this precision setting greater detail would be used in defining the character shape.
Lowest quality precision setting, string is used for faster display of character strings.
Function : setTextPrecision(tpr). Where tpr= string, character and stroke.
Marker Attributes
A marker symbol is a single character that can be displayed a different colors and in
different sizes.
i. Maker type
we select a particular character to be the marker symbol with the function
set MakerType(mt) where 1- dot(.), 2-vertical cross(+), 3- Asterisk(*), 4-Circle(o), 5-
Diagonal cross (X)
ii. size
setMakerSize ScaleFactor(ms)
iii. Color
setPolymarkerColourIndex(mc).
Marker Attributes
A marker symbol is a single character that can be displayed a different colors and in
different sizes.
i. Maker type
we select a particular character to be the marker symbol with the function
set MakerType(mt) where 1- dot(.), 2-vertical cross(+), 3- Asterisk(*), 4-Circle(o), 5-
Diagonal cross (X)
ii. size
setMakerSize ScaleFactor(ms)
iii. Color
setPolymarkerColourIndex(mc).

More Related Content

What's hot

Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive SachiniGunawardana
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer GraphicsLaxman Puri
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clippingMdAlAmin187
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)Timbal Mayank
 
Video display devices
Video display devicesVideo display devices
Video display devicesMohd Arif
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics systemKamal Acharya
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithmAparna Joshi
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithmnehrurevathy
 
Raster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysRaster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysSaravana Priya
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversionMohd Arif
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniquesMani Kanth
 

What's hot (20)

Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clipping
 
Clipping
ClippingClipping
Clipping
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
UNIT-IV
UNIT-IVUNIT-IV
UNIT-IV
 
Raster Scan and Raster Scan Displays
Raster Scan and Raster Scan DisplaysRaster Scan and Raster Scan Displays
Raster Scan and Raster Scan Displays
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversion
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
 

Similar to Attributes of output primitives unit ii

Character Attribute in computer graphics
Character Attribute in computer graphicsCharacter Attribute in computer graphics
Character Attribute in computer graphicsHariTharshiniBscIT1
 
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
 
Lecture filling algorithms
Lecture  filling algorithmsLecture  filling algorithms
Lecture filling algorithmsavelraj
 
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
 
Lectures r-graphics
Lectures r-graphicsLectures r-graphics
Lectures r-graphicsetyca
 
Chart and graphs in R programming language
Chart and graphs in R programming language Chart and graphs in R programming language
Chart and graphs in R programming language CHANDAN KUMAR
 
C UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYC UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYRajeshkumar Reddy
 
Bundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptxBundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptxSindhuVelmukull
 
Matlab ch1 (6)
Matlab ch1 (6)Matlab ch1 (6)
Matlab ch1 (6)mohsinggg
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Erdi Karaçal
 
Bt9301, computer graphics
Bt9301, computer graphicsBt9301, computer graphics
Bt9301, computer graphicssmumbahelp
 
Autocad commands
Autocad commandsAutocad commands
Autocad commandsAmit Kumar
 
Polygon filling
Polygon fillingPolygon filling
Polygon fillingAnkit Garg
 

Similar to Attributes of output primitives unit ii (20)

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
 
Character Attribute in computer graphics
Character Attribute in computer graphicsCharacter Attribute in computer graphics
Character Attribute in computer graphics
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.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
 
Character aatributes
Character aatributesCharacter aatributes
Character aatributes
 
Lecture filling algorithms
Lecture  filling algorithmsLecture  filling algorithms
Lecture filling algorithms
 
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
 
Lectures r-graphics
Lectures r-graphicsLectures r-graphics
Lectures r-graphics
 
Chart and graphs in R programming language
Chart and graphs in R programming language Chart and graphs in R programming language
Chart and graphs in R programming language
 
C UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDYC UNIT-3 PREPARED BY M V B REDDY
C UNIT-3 PREPARED BY M V B REDDY
 
Bundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptxBundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptx
 
Plot function in R
Plot function in RPlot function in R
Plot function in R
 
C6 agramakrishnan1
C6 agramakrishnan1C6 agramakrishnan1
C6 agramakrishnan1
 
Matlab ch1 (6)
Matlab ch1 (6)Matlab ch1 (6)
Matlab ch1 (6)
 
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...Me 443   4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
Me 443 4 plotting curves Erdi Karaçal Mechanical Engineer University of Gaz...
 
Bt9301, computer graphics
Bt9301, computer graphicsBt9301, computer graphics
Bt9301, computer graphics
 
FinalReportFoxMelle
FinalReportFoxMelleFinalReportFoxMelle
FinalReportFoxMelle
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
Autocad commands
Autocad commandsAutocad commands
Autocad commands
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
 

More from Balamurugan M

More from Balamurugan M (7)

Sorting algorithms in Data Structure
Sorting algorithms in Data StructureSorting algorithms in Data Structure
Sorting algorithms in Data Structure
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
 
Unit 3 notes
Unit 3 notesUnit 3 notes
Unit 3 notes
 
Unit 2 notes
Unit 2 notesUnit 2 notes
Unit 2 notes
 
Unit 1 notes
Unit 1 notesUnit 1 notes
Unit 1 notes
 
Face recognition
Face recognitionFace recognition
Face recognition
 

Recently uploaded

Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

Attributes of output primitives unit ii

  • 1. Attributes of Output Primitives Any parameter that affects the way a primitive is to be display is referred to as an attribute parameter. Some attribute parameters such as Color and Size Line Attributes 1. Line Type Line type Attributes are solid lines, dashed lines and dotted lines. We modify a line drawing algorithm to generate such lines by setting the length and spacing of displayed solid sections along the line path. Function: setlineType(lt) lt is assigned a positive integer of 1-Solid, 2-Dashed, 3-Dotted, 4-Dash dotted Raster line algorithm display linetype attributes by plotting pixel spans. Pixel counts for the span length and interspan spacing can be specified in a pixel mask, which is a string containing the digits 1 and 0. 2. Line Width Implementation of line width options depends on the capabilities of the output device. Line width determines the thickness of line. Function: setlineWidthScaleFactor(lw) Lw is assigned positive integer of 1-standard line, 0.5- half of the standard line, >1- thickness than the standard line. Thickness lines are generated quickly by plotting horizontal or vertical pixel spans Line caps Adjusting the shape of the line ends to give them a better appearance.
  • 2. Butt cap : Adjusting the endpoints of the component parallel lines. So that the thick line is display with square ends that as perpendicular to the line path. Round cap: Adding a filled semi circle to each butt caps. Projecting Square cap: Extend the line and add butt caps. Three possible methods for smoothly joining the two line segments of poly lines. Mitter join : Extending the outer boundaries of each of the two lines until they meet. Round join : Caping the connection between the two segments with a circular boundary who diameter is equal to the line width. Bevel join : Displaying the line segments with butt caps and filling in the triangular cap where the segments meet.
  • 3. 3. Pen and Brush Options Lines generated with pen or brush shapes can be displayed in various widths by changing the size of the mask. Options in this category include shape, size and pattern. 4. Line Color When a system provides color options, a parameter giving the current color index is included in the list of system attribute values. The number of color choices depends on the number of bits available per pixel in the frame buffer. Function: setPolylineColourIndex(lc); Area Fill Attributes Options for filling a defined region include choice between a solid color or patterned fill. 1. Fill styles Areas are display with three basic fill styles. • Hollow with color border • Filled with a solid color • Filled with a specified pattern or design
  • 4. Function: setInteriorStyle(fs) Fs – 1-hollow, 2-solid, 3-pattern, 4- hatch
  • 5. Another value for fill style hatch, which is used to fill a area with selected hatching patterns(parallel lines or crossed lines) Function for choose color for solid interior or Hollow area setInteriorColourIndex(fc) 2. Pattern Fill We select fill patters with function setInteriorStyleIndex(pi) Where pattern index parameter pi specifies a table position. We use the function setPatternRepresentation(ws,pi,nx,ny,cp) Where cp is two dimensional array of color codes with nx columns and ny rows, ws is workstation, pi is patternindex. Example setPatternRepresentation(1,1,2,2,cp) 4 0 0 4 The process of filling an area with a rectangular pattern is called tiling. 3. Soft fill Fill color is combined with the background colors are referred to as soft fill or tint fill algorithms. Linear soft fill algorithm repaints an area that was originally painted by merging a foreground color F with a single Background color B, where F not equal to B Function: p=tF+(1-t)B Where t is transparency factor value between 0 and 1 for each pixel.
  • 6. T can be calculated using on of the RGB Components. T=(Pk –Bk)/ (Fk-Bk) Where k= R, G, or B and Fk not equal to Bk We can minimize the round off error by selecting the component with the largest difference between F and B. Soft fill procedures can be applied to an area whose foreground color is to be merged with multiple background color areas such as checkered pattern. Function : P= t0F + t1B1+(1-t0-t1)B2 Character Attributes The appearance of displayed characters is controlled by attributes such as font, size, color and orientation. 1. Text Attributes i. Choice of font (or typeface), which is a set of characters with a particular design style such as courier, arial, times new roman, etc. The characters is a selected for can also be displayed with assorted underlying styles (solid,dotted,double) in boldface, in italics. Function: setTextFont(tf)
  • 7. ii. Color settings for displayed text are stored in the system attribute list and used by the procedure the load character definition into the framebuffer. Function: setTextColourIndex(tc) iii. we can adjust text size by scalling the overall dimensions ( height and width) of characters or by scaling only the character width. 1 point = 0.013837 inch Text size can be adjusted using the Function setCharacterHeight(ch). The width only of text can be set with the function setCharacterExpansionFactor(cw). Spacing between Characters is controlled separately with setChatacterSpacing(cs). iv. The Orientation for a displayed character string is set according to the direction of the character upvector: Function: setCharacterUpVector(upvect) where upvect is the orientation from base line (x) to cap line (y) Example : upvect(1,1,) – the direction of the up vector is 450 v. Text path function : setTextpath(tp) where tp- right, left ,up or down
  • 8. vi. Text Alignment – Function : setTExtAlignment(h,v) h-horizantal alignment(left, center and right) v-vertical alignment( top, cap, half, base and bottom) vii. Precision for this precision setting greater detail would be used in defining the character shape. Lowest quality precision setting, string is used for faster display of character strings. Function : setTextPrecision(tpr). Where tpr= string, character and stroke.
  • 9. Marker Attributes A marker symbol is a single character that can be displayed a different colors and in different sizes. i. Maker type we select a particular character to be the marker symbol with the function set MakerType(mt) where 1- dot(.), 2-vertical cross(+), 3- Asterisk(*), 4-Circle(o), 5- Diagonal cross (X) ii. size setMakerSize ScaleFactor(ms) iii. Color setPolymarkerColourIndex(mc).
  • 10. Marker Attributes A marker symbol is a single character that can be displayed a different colors and in different sizes. i. Maker type we select a particular character to be the marker symbol with the function set MakerType(mt) where 1- dot(.), 2-vertical cross(+), 3- Asterisk(*), 4-Circle(o), 5- Diagonal cross (X) ii. size setMakerSize ScaleFactor(ms) iii. Color setPolymarkerColourIndex(mc).