SlideShare a Scribd company logo
Structure :
Definition
Line Attribute
Curve Attribute
Color and Grayscale Level
Area Filled Attribute
Text and Characters
The way a primitive is to be displayed is referred to as an
Attribute Parameter.
Some attribute parameters include color ,size etc.
Different ways to incorporate attribute changes :
 Extend the parameter list associated with each primitive
 Maintain a system list of current attribute values and use
separate functions to set attributes.
. Type
. Width
. Color
. Pen & Brush
Type :
 Solid
 Dotted – very short dash with spacing equal to or greater than dash itself
 Dashed – displayed by generating an inter dash spacing
Dash Dotted –combination of the earlier two
To set line type attribute in PHIGS Application,
setLineType(lt) can be used. Lt can be -1,2,3,4
Raster Line algorithms display line attributes by plotting pixel spans.
Pixel count for the span and inter span length and inter span spacing can be
specified using the mask .
Ex. 111100011110001111
Plotting dashes with fixed number of pixels result in unequal-length dashes for
different line orientations. Horizontal line looks small when compared to a
vertical line.
For dash lines to remain constant, we should adjust the pix span el count for the
solid span and inter space span according to the slope of the line.
Specify in pixels and proportion of a standard line width.
Thicker line can be produced by.
. Adding extra pixel vertically when |m| < 1
. Adding extra pixel horizontally when |m| > 1
We can set the width of a line using setLineWidthScaleFactor(lw);
Where lw is assigned a positive number.
Issues:
Line have different thickness on the slope
Problem with
. End of the line (Use Line Caps)
. Joining the two lines (polygon)
The selected “pen” or “brush” determine the way a line will be drawn.
Pens and brushes have size, shape, color and pattern attribute.
Pixel mask is applied in both of them.
A polyline procedure displays a line in current color by setting this color value in
the frame buffer at pixel locations along the line path using the set Pixel function.
setPolyLineColorIndex(lc)
A line drawn with background color in invisible.
Similar to line : type + width
Thicker curves can be produced by:
1. Plotting additional pixel
2. Filling the space between two concentric circles.
3. Using thicker pen or brush
Color
 General Purpose raster scan systems provide a variety of colors while
random scan monitors provide very few.
 Colors are represented by colors codes which are positive integers.
 Color information is stored in frame buffer or in separate table and use
pixel values as index to the color table.
 Two ways to store color information :
1. Direct
2. Indirect
Apply for monitor that have no color
Shades of grey (white->light grey->dark grey->black)
Color code mapped onto grayscale codes
2 bits can give 4 level of grayscale
8 bits per pixel will allow 256 combination
Dividing the actual code with 256 will give range of 0 and 1
Ex:
Color code in color display is 118
To map to nearest grayscale then
118/256 = 0.45
 light gray
Option for filling a defined region is whether solid , pattern and colors.
Fill Styles
Three basic fill styles are:
1. Hollow with color border
2. Solid
3. Patterened
A basic fill style can be assigned in a PHIGS program using the following
function:
setInteriorStyle(fs),
Where fs c an be hollow,s olid,or pattern .
Another value for Fill Style is Hatch, which is used to fill an area with
selected hatching patterns.2 types :
Diagonal Hatch Fill and Diagonal Cross Hatch Fill.
The color for a solid interior or for a hollow area outline is chosen with :
setInteriorColorIndex(fc) where fc is the desired color code.
Other fill options include specifications for the edge type, edge width edge
color of a region.
We select fill patterns with
setInteriorStyleIndex(pi), where pi specifies a table position
For fill style pattern, tables entries can be created on individual output
devices with :
setPatternRepresentation (ws,pi,nx,ny,cp)
Where,
pi is pattern index number,
ws is the workstation code,
Cp is the 2d array of color codes with nx columns and ny rows.

More Related Content

What's hot

2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 
line attributes.pptx
line attributes.pptxline attributes.pptx
line attributes.pptx
RubaNagarajan
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
Aparna Joshi
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Character attributes
Character attributesCharacter attributes
Character attributes
shalinikarunakaran1
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
Mani Kanth
 
Polygon filling
Polygon fillingPolygon filling
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical data
Rajapriya82
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 
Video display devices
Video display devicesVideo display devices
Video display devices
shalinikarunakaran1
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
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 techniques
Mani Kanth
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
Mani Kanth
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
Shami Al Rahad
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 
Raster animation
Raster animationRaster animation
Raster animation
abhijit754
 

What's hot (20)

2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
line attributes.pptx
line attributes.pptxline attributes.pptx
line attributes.pptx
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Character attributes
Character attributesCharacter attributes
Character attributes
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
 
Input of graphical data
Input of graphical dataInput of graphical data
Input of graphical data
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
Unit 3
Unit 3Unit 3
Unit 3
 
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
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
Point processing
Point processingPoint processing
Point processing
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
Raster animation
Raster animationRaster animation
Raster animation
 

Similar to Computer graphics chapter 4

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
SathishShetty13
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
Ankit Garg
 
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_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
SungaleliYuen
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
Mazin Alwaaly
 
Language Model.pptx
Language Model.pptxLanguage Model.pptx
Language Model.pptx
Firas Obeid
 
cs2401-cg-attributsofprimitives-unit1.ppt
cs2401-cg-attributsofprimitives-unit1.pptcs2401-cg-attributsofprimitives-unit1.ppt
cs2401-cg-attributsofprimitives-unit1.ppt
AteeqAhmad48
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
RamanathanSabesan
 
Dip
DipDip
Unit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representationUnit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representation
Eellekwameowusu
 
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
Cheriyan K M
 
Digital Coding of Images.pptx
Digital Coding of Images.pptxDigital Coding of Images.pptx
Digital Coding of Images.pptx
emsResulzade1
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
BhagyasriPatel2
 
ASqueo Houdini Exercise 2
ASqueo Houdini Exercise 2ASqueo Houdini Exercise 2
ASqueo Houdini Exercise 2Amanda Squeo
 
Houdini Exercise Two
Houdini Exercise TwoHoudini Exercise Two
Houdini Exercise TwoAmanda Squeo
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
ssuserff72e4
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
ssuserff72e4
 
Text detection and recognition from natural scenes
Text detection and recognition from natural scenesText detection and recognition from natural scenes
Text detection and recognition from natural scenes
hemanthmcqueen
 

Similar to Computer graphics chapter 4 (20)

attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
 
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
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
 
Language Model.pptx
Language Model.pptxLanguage Model.pptx
Language Model.pptx
 
cs2401-cg-attributsofprimitives-unit1.ppt
cs2401-cg-attributsofprimitives-unit1.pptcs2401-cg-attributsofprimitives-unit1.ppt
cs2401-cg-attributsofprimitives-unit1.ppt
 
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
 
Dip
DipDip
Dip
 
Unit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representationUnit i mm_chap3_graphics and image data representation
Unit i mm_chap3_graphics and image data representation
 
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
SCENE TEXT RECOGNITION IN MOBILE APPLICATION BY CHARACTER DESCRIPTOR AND STRU...
 
Digital Coding of Images.pptx
Digital Coding of Images.pptxDigital Coding of Images.pptx
Digital Coding of Images.pptx
 
UNIT_4_data visualization.pptx
UNIT_4_data visualization.pptxUNIT_4_data visualization.pptx
UNIT_4_data visualization.pptx
 
ASqueo Houdini Exercise 2
ASqueo Houdini Exercise 2ASqueo Houdini Exercise 2
ASqueo Houdini Exercise 2
 
Houdini Exercise Two
Houdini Exercise TwoHoudini Exercise Two
Houdini Exercise Two
 
Chap9 10
Chap9 10Chap9 10
Chap9 10
 
C6 agramakrishnan1
C6 agramakrishnan1C6 agramakrishnan1
C6 agramakrishnan1
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Text detection and recognition from natural scenes
Text detection and recognition from natural scenesText detection and recognition from natural scenes
Text detection and recognition from natural scenes
 

More from PrathimaBaliga

Multimedia chapter 4
Multimedia chapter 4Multimedia chapter 4
Multimedia chapter 4
PrathimaBaliga
 
Multimedia chapter 2
Multimedia chapter 2Multimedia chapter 2
Multimedia chapter 2
PrathimaBaliga
 
Multimedia chapter 5
Multimedia chapter 5Multimedia chapter 5
Multimedia chapter 5
PrathimaBaliga
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
PrathimaBaliga
 
Overview of Graphics System
Overview of Graphics SystemOverview of Graphics System
Overview of Graphics System
PrathimaBaliga
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics PrathimaBaliga
 

More from PrathimaBaliga (7)

Multimedia chapter 4
Multimedia chapter 4Multimedia chapter 4
Multimedia chapter 4
 
Multimedia chapter 2
Multimedia chapter 2Multimedia chapter 2
Multimedia chapter 2
 
Multimedia chapter 2
Multimedia chapter 2Multimedia chapter 2
Multimedia chapter 2
 
Multimedia chapter 5
Multimedia chapter 5Multimedia chapter 5
Multimedia chapter 5
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
 
Overview of Graphics System
Overview of Graphics SystemOverview of Graphics System
Overview of Graphics System
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
 

Recently uploaded

Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
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
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
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
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
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
 
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
 
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
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
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
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 

Recently uploaded (20)

Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
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
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
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
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
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
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
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
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
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
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 

Computer graphics chapter 4

  • 1. Structure : Definition Line Attribute Curve Attribute Color and Grayscale Level Area Filled Attribute Text and Characters
  • 2. The way a primitive is to be displayed is referred to as an Attribute Parameter. Some attribute parameters include color ,size etc. Different ways to incorporate attribute changes :  Extend the parameter list associated with each primitive  Maintain a system list of current attribute values and use separate functions to set attributes.
  • 3. . Type . Width . Color . Pen & Brush
  • 4. Type :  Solid  Dotted – very short dash with spacing equal to or greater than dash itself  Dashed – displayed by generating an inter dash spacing Dash Dotted –combination of the earlier two To set line type attribute in PHIGS Application, setLineType(lt) can be used. Lt can be -1,2,3,4
  • 5. Raster Line algorithms display line attributes by plotting pixel spans. Pixel count for the span and inter span length and inter span spacing can be specified using the mask . Ex. 111100011110001111 Plotting dashes with fixed number of pixels result in unequal-length dashes for different line orientations. Horizontal line looks small when compared to a vertical line. For dash lines to remain constant, we should adjust the pix span el count for the solid span and inter space span according to the slope of the line.
  • 6. Specify in pixels and proportion of a standard line width. Thicker line can be produced by. . Adding extra pixel vertically when |m| < 1 . Adding extra pixel horizontally when |m| > 1 We can set the width of a line using setLineWidthScaleFactor(lw); Where lw is assigned a positive number.
  • 7. Issues: Line have different thickness on the slope Problem with . End of the line (Use Line Caps) . Joining the two lines (polygon)
  • 8.
  • 9.
  • 10. The selected “pen” or “brush” determine the way a line will be drawn. Pens and brushes have size, shape, color and pattern attribute. Pixel mask is applied in both of them.
  • 11. A polyline procedure displays a line in current color by setting this color value in the frame buffer at pixel locations along the line path using the set Pixel function. setPolyLineColorIndex(lc) A line drawn with background color in invisible.
  • 12. Similar to line : type + width Thicker curves can be produced by: 1. Plotting additional pixel 2. Filling the space between two concentric circles. 3. Using thicker pen or brush
  • 13.
  • 14.
  • 15. Color  General Purpose raster scan systems provide a variety of colors while random scan monitors provide very few.  Colors are represented by colors codes which are positive integers.  Color information is stored in frame buffer or in separate table and use pixel values as index to the color table.  Two ways to store color information : 1. Direct 2. Indirect
  • 16.
  • 17.
  • 18. Apply for monitor that have no color Shades of grey (white->light grey->dark grey->black) Color code mapped onto grayscale codes 2 bits can give 4 level of grayscale 8 bits per pixel will allow 256 combination Dividing the actual code with 256 will give range of 0 and 1 Ex: Color code in color display is 118 To map to nearest grayscale then 118/256 = 0.45  light gray
  • 19. Option for filling a defined region is whether solid , pattern and colors. Fill Styles Three basic fill styles are: 1. Hollow with color border 2. Solid 3. Patterened
  • 20.
  • 21. A basic fill style can be assigned in a PHIGS program using the following function: setInteriorStyle(fs), Where fs c an be hollow,s olid,or pattern . Another value for Fill Style is Hatch, which is used to fill an area with selected hatching patterns.2 types : Diagonal Hatch Fill and Diagonal Cross Hatch Fill.
  • 22. The color for a solid interior or for a hollow area outline is chosen with : setInteriorColorIndex(fc) where fc is the desired color code. Other fill options include specifications for the edge type, edge width edge color of a region.
  • 23. We select fill patterns with setInteriorStyleIndex(pi), where pi specifies a table position For fill style pattern, tables entries can be created on individual output devices with : setPatternRepresentation (ws,pi,nx,ny,cp) Where, pi is pattern index number, ws is the workstation code, Cp is the 2d array of color codes with nx columns and ny rows.