SlideShare a Scribd company logo
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

Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversionMohd Arif
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
Shami Al Rahad
 
Raster scan system
Raster scan systemRaster scan system
Raster scan systemMohd Arif
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
Rajani Thite
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
Ankit Garg
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clipping
MdAlAmin187
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
Video display devices
Video display devicesVideo display devices
Video display devicesMohd Arif
 
Raster Scan display
Raster Scan displayRaster Scan display
Raster Scan display
Lokesh Singrol
 
Chapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationChapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel Relation
Varun Ojha
 
3d-object-representation.pdf
3d-object-representation.pdf3d-object-representation.pdf
3d-object-representation.pdf
KeerthanaP37
 
CATHODE RAY TUBE IN COMPUTER GRAPHICS
CATHODE RAY TUBE IN COMPUTER GRAPHICSCATHODE RAY TUBE IN COMPUTER GRAPHICS
CATHODE RAY TUBE IN COMPUTER GRAPHICS
nehrurevathy
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
SanthiNivas
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
Mani Kanth
 
line attributes.pptx
line attributes.pptxline attributes.pptx
line attributes.pptx
RubaNagarajan
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
CRT (Cathode ray tube)
CRT (Cathode ray tube)CRT (Cathode ray tube)
CRT (Cathode ray tube)
Inamul Hossain Imran
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
Ahtesham Ullah khan
 

What's hot (20)

Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversion
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Raster scan system
Raster scan systemRaster scan system
Raster scan system
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clipping
 
Unit 3
Unit 3Unit 3
Unit 3
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Shading
ShadingShading
Shading
 
Raster Scan display
Raster Scan displayRaster Scan display
Raster Scan display
 
Chapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationChapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel Relation
 
3d-object-representation.pdf
3d-object-representation.pdf3d-object-representation.pdf
3d-object-representation.pdf
 
CATHODE RAY TUBE IN COMPUTER GRAPHICS
CATHODE RAY TUBE IN COMPUTER GRAPHICSCATHODE RAY TUBE IN COMPUTER GRAPHICS
CATHODE RAY TUBE IN COMPUTER GRAPHICS
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
 
line attributes.pptx
line attributes.pptxline attributes.pptx
line attributes.pptx
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
CRT (Cathode ray tube)
CRT (Cathode ray tube)CRT (Cathode ray tube)
CRT (Cathode ray tube)
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
 

Similar to Attributes of output primitives unit ii

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
SathishShetty13
 
Character Attribute in computer graphics
Character Attribute in computer graphicsCharacter Attribute in computer graphics
Character Attribute in computer graphics
HariTharshiniBscIT1
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
SungaleliYuen
 
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
nehrurevathy
 
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 Images
Reham Marzouk
 
Lectures r-graphics
Lectures r-graphicsLectures r-graphics
Lectures r-graphics
etyca
 
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.pptx
SindhuVelmukull
 
Plot function in R
Plot function in RPlot function in R
Plot function in R
Vladimir Bakhrushin
 
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 graphics
smumbahelp
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
ssuser0bf6a8
 
Autocad commands
Autocad commandsAutocad commands
Autocad commands
Amit Kumar
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
Ankit 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

Sorting algorithms in Data Structure
Sorting algorithms in Data StructureSorting algorithms in Data Structure
Sorting algorithms in Data Structure
Balamurugan M
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
Balamurugan M
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
Balamurugan M
 
Unit 3 notes
Unit 3 notesUnit 3 notes
Unit 3 notes
Balamurugan M
 
Unit 2 notes
Unit 2 notesUnit 2 notes
Unit 2 notes
Balamurugan M
 
Unit 1 notes
Unit 1 notesUnit 1 notes
Unit 1 notes
Balamurugan M
 
Face recognition
Face recognitionFace recognition
Face recognition
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

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

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