SlideShare a Scribd company logo
1 of 19
PRESENTED BY
CHARACTER ATTRIBUTES
Mrs.A.Agatha Chithra M.Sc.,B.Ed.,M.Phil.,
Character Attributes
 The appearance of displayed characters is
controlled by attributes such as font, size, color, and
orientation.
 Attributes can be set both for entire character strings
(text) and for individual characters defined
as marker symbols.
Text Attributes
• First of all, there is the choice of font (or typeface), which is a set of
characters with a particular design style such as New York, Courier,
Helvetica, London, 'Times Roman, and various special symbol grou
ps.
• The characters in a selected font can also be displayed with assorted
underlining styles (solid, dotted, double), in boldface, in italics. and
in outline or shadow styles.
• A particular font and associated style is selected in a PHIGS progra
m by setting an integer code for the text font parameter t f in the fun
ction.
setTextFont(tf)
• Color settings for displayed text are stored in the system attribute lis
t and used by the procedures that load character definitions into the f
rame buffer.
• When a character string is to be displayed, the current color is used t
o set pixel values in the frame buffer corresponding to the character
shapes and positions
• Control of text color (or intensity) is managed from an application p
rogram with
setTextColorIndex(tc)
• where text color parameter to specifies an allowable color code.
• Character size (height) is specified by printers in points, where 1 poi
nt=0.035146 cm.
• The distance between the bottom line and the top line of the characte
r body is the same for all characters in a particular size and typeface,
but the body width may vary.
• Character height is defined as the distance between the baseline and
the cap line of characters.
• Text size can be adjusted without changing the width-to-height ratio
of characters with
setChatacterHeight(ch)
• Parameter ch is assigned a real value greater than 0 to set the coordi
nate height of capital letters: the distance between baseline and capli
ne in user coordinates.
• The width only of text can be set with the function
setCharacterExpansionFactor(cw)
• where the character-width parameter cw is set to a positive real valu
e that scales the body width of characters.
• Spacing between characters is controlled separately with
setCharacterSpacing(cs)
• where the character-spacing parameter cs can he assigned any real v
alue. The value assigned to cs determines the spacing between chara
cter bodies along print lines.
• Negative values for cs overlap character bodies; positive values inse
rt space to spread out the displayed characters.
• The orientation for a displayed character string is set according to th
e direction of the character up vector:
• setCharacterUpVector(upvect)
• Parameter upvect in this function is assigned two values that specify
the x and y vector components.
• Text is then displayed so that the orientation of characters from basel
ine to capline is in the direction of the up vector.
• For example, with upvect = (I, I), the direction of the up vector is 45"
and text would be displayed
• It is useful in many applications to be able to arrange character strin
gs vertically or horizontally. An attribute parameter for this option is
set with the statement
setTextPath(tp)
• where the text-path parameter tp can be assigned the value: right, lef
t, up, or down.
• A procedure for implementing this option must transform the charac
ter patterns into the specified orientation before transferring them to
the frame buffer
• Another handy attribute for character strings is alignment. This attri
bute specifies how text is to be positioned with respect to the start co
ordinates. Alignment attributes are set with
setAlignment(h,v)
• where parameters h and v control horizontal and vertical alignment.
• Horizontal alignment is set by assigning ha value of left, centre, or ri
ght.
• Vertical alignment is set by assigning v a value of top, cap, half, bas
e, or bottom
Fig: Alignments of a
Character String
• A precision specifici~tionf or text display is given with
setTextPrecision(tpr)
• where text precision parameter tpr is assigned one of the values: strin
g, char, or stroke.
• The highest-quality text is displayed when the precision parameter is
set to the value stroke
Marker Attribute
• A marker symbol is a single character that can he displayed in differ
ent colors and in different sizes.
• We select a particular character to be the marker symbol with
setMarkerType(mt)
• Where marker type parameter mt is set to an integer code.
• Typical codes for marker type are the integers 1 through 5,
• Specifying, respectively, a dot (.), a vertical cross (+), an asterisk (*)
, a circle (o), and a diagonal cross (X)." Displayed marker types are
centered on the marker coordinates.
• We set the maker size with
setMakerSizeScaleFactor (ms)
• Marker color is specified with
setPolymarkerColoulndex (mc)
• A selected color code for parameter mc is stored in the current attribu
te list and used to display subsequently specified marker primitives.
Thank You

More Related Content

What's hot

2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
Mohd Arif
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
Mohd Arif
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
shalinikarunakaran1
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
Aarti P
 

What's hot (20)

Css selectors
Css selectorsCss selectors
Css selectors
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
 
Unit 3
Unit 3Unit 3
Unit 3
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
 
KEY FRAME SYSTEM-Ruby Stella mary.pptx
KEY FRAME SYSTEM-Ruby Stella mary.pptxKEY FRAME SYSTEM-Ruby Stella mary.pptx
KEY FRAME SYSTEM-Ruby Stella mary.pptx
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Character attributes
Character attributesCharacter attributes
Character attributes
 

Similar to Character Attribute in computer graphics

Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
Ankit Garg
 

Similar to Character Attribute in computer graphics (20)

Character aatributes
Character aatributesCharacter aatributes
Character aatributes
 
Lecture_3.pptx
Lecture_3.pptxLecture_3.pptx
Lecture_3.pptx
 
Exploratory data analysis using r
Exploratory data analysis using rExploratory data analysis using r
Exploratory data analysis using r
 
Exploratory Data Analysis
Exploratory Data AnalysisExploratory Data Analysis
Exploratory Data Analysis
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
 
Console I/o & basics of array and strings.pptx
Console I/o & basics of array and strings.pptxConsole I/o & basics of array and strings.pptx
Console I/o & basics of array and strings.pptx
 
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
 
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...
 
SPL 5 | scanf in C
SPL 5 | scanf in CSPL 5 | scanf in C
SPL 5 | scanf in C
 
Graphics software standards
Graphics software standardsGraphics software standards
Graphics software standards
 
Autocad commands
Autocad commandsAutocad commands
Autocad commands
 
Data types.pdf
Data types.pdfData types.pdf
Data types.pdf
 
Numeric Data Types & Strings
Numeric Data Types & StringsNumeric Data Types & Strings
Numeric Data Types & Strings
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Ppt lesson 07
Ppt lesson 07Ppt lesson 07
Ppt lesson 07
 
Css summary
Css summaryCss summary
Css summary
 
CS4443 - Modern Programming Language - I Lecture (2)
CS4443 - Modern Programming Language - I  Lecture (2)CS4443 - Modern Programming Language - I  Lecture (2)
CS4443 - Modern Programming Language - I Lecture (2)
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
Chapter 12: CSS Part 2
Chapter 12: CSS Part 2Chapter 12: CSS Part 2
Chapter 12: CSS Part 2
 
Basic Concepts of C Language.pptx
Basic Concepts of C Language.pptxBasic Concepts of C Language.pptx
Basic Concepts of C Language.pptx
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Character Attribute in computer graphics

  • 1. PRESENTED BY CHARACTER ATTRIBUTES Mrs.A.Agatha Chithra M.Sc.,B.Ed.,M.Phil.,
  • 2. Character Attributes  The appearance of displayed characters is controlled by attributes such as font, size, color, and orientation.  Attributes can be set both for entire character strings (text) and for individual characters defined as marker symbols.
  • 3. Text Attributes • First of all, there is the choice of font (or typeface), which is a set of characters with a particular design style such as New York, Courier, Helvetica, London, 'Times Roman, and various special symbol grou ps. • The characters in a selected font can also be displayed with assorted underlining styles (solid, dotted, double), in boldface, in italics. and in outline or shadow styles.
  • 4. • A particular font and associated style is selected in a PHIGS progra m by setting an integer code for the text font parameter t f in the fun ction. setTextFont(tf) • Color settings for displayed text are stored in the system attribute lis t and used by the procedures that load character definitions into the f rame buffer. • When a character string is to be displayed, the current color is used t o set pixel values in the frame buffer corresponding to the character shapes and positions
  • 5. • Control of text color (or intensity) is managed from an application p rogram with setTextColorIndex(tc) • where text color parameter to specifies an allowable color code. • Character size (height) is specified by printers in points, where 1 poi nt=0.035146 cm.
  • 6. • The distance between the bottom line and the top line of the characte r body is the same for all characters in a particular size and typeface, but the body width may vary. • Character height is defined as the distance between the baseline and the cap line of characters.
  • 7. • Text size can be adjusted without changing the width-to-height ratio of characters with setChatacterHeight(ch) • Parameter ch is assigned a real value greater than 0 to set the coordi nate height of capital letters: the distance between baseline and capli ne in user coordinates.
  • 8. • The width only of text can be set with the function setCharacterExpansionFactor(cw) • where the character-width parameter cw is set to a positive real valu e that scales the body width of characters.
  • 9. • Spacing between characters is controlled separately with setCharacterSpacing(cs) • where the character-spacing parameter cs can he assigned any real v alue. The value assigned to cs determines the spacing between chara cter bodies along print lines. • Negative values for cs overlap character bodies; positive values inse rt space to spread out the displayed characters.
  • 10. • The orientation for a displayed character string is set according to th e direction of the character up vector: • setCharacterUpVector(upvect) • Parameter upvect in this function is assigned two values that specify the x and y vector components. • Text is then displayed so that the orientation of characters from basel ine to capline is in the direction of the up vector.
  • 11. • For example, with upvect = (I, I), the direction of the up vector is 45" and text would be displayed
  • 12. • It is useful in many applications to be able to arrange character strin gs vertically or horizontally. An attribute parameter for this option is set with the statement setTextPath(tp) • where the text-path parameter tp can be assigned the value: right, lef t, up, or down. • A procedure for implementing this option must transform the charac ter patterns into the specified orientation before transferring them to the frame buffer
  • 13.
  • 14. • Another handy attribute for character strings is alignment. This attri bute specifies how text is to be positioned with respect to the start co ordinates. Alignment attributes are set with setAlignment(h,v) • where parameters h and v control horizontal and vertical alignment. • Horizontal alignment is set by assigning ha value of left, centre, or ri ght. • Vertical alignment is set by assigning v a value of top, cap, half, bas e, or bottom
  • 15. Fig: Alignments of a Character String
  • 16. • A precision specifici~tionf or text display is given with setTextPrecision(tpr) • where text precision parameter tpr is assigned one of the values: strin g, char, or stroke. • The highest-quality text is displayed when the precision parameter is set to the value stroke
  • 17. Marker Attribute • A marker symbol is a single character that can he displayed in differ ent colors and in different sizes. • We select a particular character to be the marker symbol with setMarkerType(mt) • Where marker type parameter mt is set to an integer code. • Typical codes for marker type are the integers 1 through 5, • Specifying, respectively, a dot (.), a vertical cross (+), an asterisk (*) , a circle (o), and a diagonal cross (X)." Displayed marker types are centered on the marker coordinates.
  • 18. • We set the maker size with setMakerSizeScaleFactor (ms) • Marker color is specified with setPolymarkerColoulndex (mc) • A selected color code for parameter mc is stored in the current attribu te list and used to display subsequently specified marker primitives.