SlideShare a Scribd company logo
4
Most read
7
Most read
8
Most read
AMITY UNIVERSITY, HARYANA
COMPUTER GRAPHICS
AnkIT GARG
ASSISTAnT PROfESSOR
AMITy UnIvERSITy, HARyAnA
30/9/2008 Lecture 2 2
Character Generation Techniques
Computer Graphics
30/9/2008 Lecture 2 3
Characters Generation in CG
– In computer graphics character can be generated using software.
– In hardware implementation of character generation limited faces of
character can be generated.
– A wide variety of faces of character can be generated with software
implementation.
– There are three methods for generating characters using software
implementation.
– Stroke method
– Vector method or bitmap method.
– Star bust method
30/9/2008 Lecture 2 4
Stoke method
• In this method we use a sequence of line drawing function and arc
functions to generate characters.
• We can generate a sequence of character by assigning starting and
end point of line or arc.
• By using this method various faces of character can be generated
by changing the values (parameters) in line and arc function.
30/9/2008 Lecture 2 5
Stoke method
• The main disadvantage of this method is when we draw a diagonal line it
produce aliased character.
30/9/2008 Lecture 2 6
Bitmap Method
Program For Bitmap Method
• #include<stdio.h>
• #include<conio.h>
• #include<graphics.h>
• main()
• {
• int gd,gm,i,j;
int a[13][9] = {
• { 0, 0, 0, 0, 1, 0, 0, 0, 0},
• { 0, 0, 0, 1, 0, 1, 0, 0, 0},
• { 0, 0, 1, 0, 0, 0, 1, 0, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 1, 1, 1, 1, 1, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• { 0, 1, 0, 0, 0, 0, 0, 1, 0},
• };
• /* Initialise graphics mode */
• detectgraph(&gd,&gm);
• initgraph(&gd,&gm,"c:tcbgi");
• Lecture 2 7
for(i=0;i<13;i++)
{
for(j=0;j<9;j++)
{
putpixel(200+j,200+i,15*a[i][j]);
}
}
getch();
closegraph();
}
Bitmap Method
• This method is suitable for producing various
character.
• Font size of character can be increased by
increasing the size of array.
• The main draw back of this method is this
method produce aliased character.
30/9/2008 Lecture 2 8
30/9/2008 Lecture 2 9
Starbust Method
1. In this method a fixed pattern of line is used to generate the
character.
2. In this method we use a combination of 24 bit line segment.
3. In 24 bit line segment code each bit represent a single line.
4. To highlight a line we put corresponding bit 1 in 24 bit line
segment code and 0 otherwise.
30/9/2008 Lecture 2 10
Starbust Method
Disadvantages of starbust method
1. Here in this method 24 bit segment code is required to put in
memory for generating character. Hence extra memory is
required in this method.
2. Character quality is poor due to limited face.
24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
0 1 0 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1
24 bit line segment code
30/9/2008 Lecture 2 11
THANK YOU!!

More Related Content

PPT
Polygon filling
PPTX
Attributes of output primitives( curve attributes & area fill attributes)
PPTX
Raster scan systems with video controller and display processor
PDF
4. THREE DIMENSIONAL DISPLAY METHODS
PPTX
Cohen sutherland line clipping
PPTX
Halftoning in Computer Graphics
PPTX
Input of graphical data
PPTX
Attributes of Output Primitives
Polygon filling
Attributes of output primitives( curve attributes & area fill attributes)
Raster scan systems with video controller and display processor
4. THREE DIMENSIONAL DISPLAY METHODS
Cohen sutherland line clipping
Halftoning in Computer Graphics
Input of graphical data
Attributes of Output Primitives

What's hot (20)

PDF
Unit 3
PPTX
Computer Graphics: Visible surface detection methods
PPT
Raster scan system
PPTX
Character generation techniques
PPTX
Back face detection
PPTX
Clipping in Computer Graphics
PPTX
2D viewing & clipping
PPTX
Applications Of Computer Graphics
PPTX
Curve and text clipping
PPTX
Attributes of output primitive(line attributes)
PPTX
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
PPT
COMPOSITE TRANSFORMATION COMPUTER GRAPHICDS.ppt
PDF
3D Transformation
PPTX
3D Display Method
PPT
Video display devices
PPTX
Computer graphics(parametric cubic curves)
PPT
Polygon clipping
PPTX
Character attributes
PPTX
Output primitives in Computer Graphics
PPTX
Frame buffer
Unit 3
Computer Graphics: Visible surface detection methods
Raster scan system
Character generation techniques
Back face detection
Clipping in Computer Graphics
2D viewing & clipping
Applications Of Computer Graphics
Curve and text clipping
Attributes of output primitive(line attributes)
ATTRIBUTES OF OUTPUT PRIMITIVES IN COMPUTER GRAPHICS
COMPOSITE TRANSFORMATION COMPUTER GRAPHICDS.ppt
3D Transformation
3D Display Method
Video display devices
Computer graphics(parametric cubic curves)
Polygon clipping
Character attributes
Output primitives in Computer Graphics
Frame buffer
Ad

Similar to Character generation (20)

PPTX
Character generation
PDF
IRJET - Automatic Licence Plate Detection and Recognition
PPT
Displaying information within a window.68
PPTX
Graphics mod
PPT
Session11 J2ME MID-Low Level User Interface(LLUI)-graphics
PDF
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
PPTX
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
DOCX
Computer graphics
PDF
Computer graphics practical(jainam)
PPT
Open Cv Tutorial Ii
PPT
Open Cv Tutorial Ii
PDF
IRJET - Kirsch Compass Kernel Edge Detection for Vehicle Number Plate Det...
DOCX
Computer graphics
PDF
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
PDF
An Intelligent approach to Pic to Cartoon Conversion using White-box-cartooni...
PDF
Comparison of GPU and FPGA Hardware Acceleration of Lane Detection Algorithm
PDF
COMPARISON OF GPU AND FPGA HARDWARE ACCELERATION OF LANE DETECTION ALGORITHM
PDF
Burr Size Analysis in Drilling Process for Different Alloys using Image Proce...
PDF
IRJET-Hardware Co-Simulation of Classical Edge Detection Algorithms using Xil...
PDF
Do24738741
Character generation
IRJET - Automatic Licence Plate Detection and Recognition
Displaying information within a window.68
Graphics mod
Session11 J2ME MID-Low Level User Interface(LLUI)-graphics
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
TRAFFIC MANAGEMENT THROUGH SATELLITE IMAGING-- Part 3
Computer graphics
Computer graphics practical(jainam)
Open Cv Tutorial Ii
Open Cv Tutorial Ii
IRJET - Kirsch Compass Kernel Edge Detection for Vehicle Number Plate Det...
Computer graphics
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
An Intelligent approach to Pic to Cartoon Conversion using White-box-cartooni...
Comparison of GPU and FPGA Hardware Acceleration of Lane Detection Algorithm
COMPARISON OF GPU AND FPGA HARDWARE ACCELERATION OF LANE DETECTION ALGORITHM
Burr Size Analysis in Drilling Process for Different Alloys using Image Proce...
IRJET-Hardware Co-Simulation of Classical Edge Detection Algorithms using Xil...
Do24738741
Ad

More from Ankit Garg (19)

PPT
Introduction to computer graphics part 2
PPT
Introduction to computer graphics part 1
DOCX
Curve clipping
PPT
Window to viewport transformation
PPT
Unit 1
PPT
Projection ppt
PPT
Polygon clipping
PPTX
Numerical unit 1
PPT
Line drawing algorithm and antialiasing techniques
PPT
Line clipping
PPTX
Hidden surface removal
PPTX
Graphics software standards
PPTX
Fractal introduction and applications modified version
PPTX
Digital image processing &amp; computer graphics
PPTX
Concept of basic illumination model
PPTX
Circle generation algorithm
PPT
Applications of cg
PPT
2 d transformation
PPT
3 d transformations
Introduction to computer graphics part 2
Introduction to computer graphics part 1
Curve clipping
Window to viewport transformation
Unit 1
Projection ppt
Polygon clipping
Numerical unit 1
Line drawing algorithm and antialiasing techniques
Line clipping
Hidden surface removal
Graphics software standards
Fractal introduction and applications modified version
Digital image processing &amp; computer graphics
Concept of basic illumination model
Circle generation algorithm
Applications of cg
2 d transformation
3 d transformations

Recently uploaded (20)

PPTX
Current and future trends in Computer Vision.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
737-MAX_SRG.pdf student reference guides
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
DOCX
573137875-Attendance-Management-System-original
PPTX
Sustainable Sites - Green Building Construction
PPTX
Artificial Intelligence
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Construction Project Organization Group 2.pptx
Current and future trends in Computer Vision.pptx
R24 SURVEYING LAB MANUAL for civil enggi
UNIT-1 - COAL BASED THERMAL POWER PLANTS
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
737-MAX_SRG.pdf student reference guides
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
573137875-Attendance-Management-System-original
Sustainable Sites - Green Building Construction
Artificial Intelligence
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Construction Project Organization Group 2.pptx

Character generation

  • 1. AMITY UNIVERSITY, HARYANA COMPUTER GRAPHICS AnkIT GARG ASSISTAnT PROfESSOR AMITy UnIvERSITy, HARyAnA
  • 2. 30/9/2008 Lecture 2 2 Character Generation Techniques Computer Graphics
  • 3. 30/9/2008 Lecture 2 3 Characters Generation in CG – In computer graphics character can be generated using software. – In hardware implementation of character generation limited faces of character can be generated. – A wide variety of faces of character can be generated with software implementation. – There are three methods for generating characters using software implementation. – Stroke method – Vector method or bitmap method. – Star bust method
  • 4. 30/9/2008 Lecture 2 4 Stoke method • In this method we use a sequence of line drawing function and arc functions to generate characters. • We can generate a sequence of character by assigning starting and end point of line or arc. • By using this method various faces of character can be generated by changing the values (parameters) in line and arc function.
  • 5. 30/9/2008 Lecture 2 5 Stoke method • The main disadvantage of this method is when we draw a diagonal line it produce aliased character.
  • 6. 30/9/2008 Lecture 2 6 Bitmap Method
  • 7. Program For Bitmap Method • #include<stdio.h> • #include<conio.h> • #include<graphics.h> • main() • { • int gd,gm,i,j; int a[13][9] = { • { 0, 0, 0, 0, 1, 0, 0, 0, 0}, • { 0, 0, 0, 1, 0, 1, 0, 0, 0}, • { 0, 0, 1, 0, 0, 0, 1, 0, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 1, 1, 1, 1, 1, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • { 0, 1, 0, 0, 0, 0, 0, 1, 0}, • }; • /* Initialise graphics mode */ • detectgraph(&gd,&gm); • initgraph(&gd,&gm,"c:tcbgi"); • Lecture 2 7 for(i=0;i<13;i++) { for(j=0;j<9;j++) { putpixel(200+j,200+i,15*a[i][j]); } } getch(); closegraph(); }
  • 8. Bitmap Method • This method is suitable for producing various character. • Font size of character can be increased by increasing the size of array. • The main draw back of this method is this method produce aliased character. 30/9/2008 Lecture 2 8
  • 9. 30/9/2008 Lecture 2 9 Starbust Method 1. In this method a fixed pattern of line is used to generate the character. 2. In this method we use a combination of 24 bit line segment. 3. In 24 bit line segment code each bit represent a single line. 4. To highlight a line we put corresponding bit 1 in 24 bit line segment code and 0 otherwise.
  • 10. 30/9/2008 Lecture 2 10 Starbust Method Disadvantages of starbust method 1. Here in this method 24 bit segment code is required to put in memory for generating character. Hence extra memory is required in this method. 2. Character quality is poor due to limited face. 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1 24 bit line segment code
  • 11. 30/9/2008 Lecture 2 11 THANK YOU!!