0% found this document useful (0 votes)
18 views13 pages

Lecture 17

Uploaded by

Mayur Mahajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views13 pages

Lecture 17

Uploaded by

Mayur Mahajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Subject – Computer Graphics

Course Code-22318 Class-CO3I

Presented By,
Mrs. B.A.Chatterjee

1
UNIT II
Raster Scan Graphics

Computer Engineering 2
Lecture 17

Computer Engineering 3
Company
Seed Fill vs Scan Line Algorithm
LOGO
Sr Seed fill algorithm Scan line algorithm
No
1 Simple to implement Very complex in nature
2 Operates in screen space Operates in screen and/or
object space
3 Require system call to get It is device independent
pixel intensity
4 Need to specify seed point No need to specify seed
contained within the point
polygon

Computer Engineering 4
Company
Seed Fill vs Scan Line Algorithm
LOGO
Sr Seed fill algorithm Scan line algorithm
No
5 Need extensive stacking No need of stacking
6 Generally used in graphics Typically used in interactive
packages rendering
7 Not suitable for Z-Buffer Suitable for Z-Buffer

Computer Engineering 5
Company
Character Generation Methods
LOGO
Character generation is possible through hardware and
software. Hardware can produce characters quickly but it is less
flexible due to hardware limitations. Software generation is a bit
slower but provide great flexibility. There are basically three
methods of character generation.

•Stroke or vector method


•Starbust method
•Bitmap or dot matrix method.

Computer Engineering 6
Company
Character Generation Methods
LOGO
Stroke Method
This is also known as vector character generation method.
In this method, basic primitive shapes like line, curves are used
to generate the characters.

Character is generally stored as a sequence of commands with


its start and end points. We can even change the size of the
characters.
Characters generated using this method scales well. According
to the size of character,algorthm scales the line, curve etc.

Computer Engineering 7
Company
Character Generation Methods
LOGO
Stroke Method

Computer Engineering 8
Company
Character Generation Methods
LOGO
Starbust Method
Character is generated using fix line patterns.

Normally 24 lines are sufficient to generate all characters. Out


of 24 lines, only required lines are illuminated.

These 24 lines are encoded using 24 bits to show which lines


should be illuminated.
Due to its characteristic appearance, this method is called star
bust method.
The particular bit is set to 1 or 0 to decide the visibility of that
line segment.

Computer Engineering 9
Company
Character Generation Methods
LOGO
Starbust Method

Computer Engineering 10
Company
Character Generation Methods
LOGO
Starbust Method

Computer Engineering 11
Company
Character Generation Methods
LOGO
Bitmap Method
This method is also known as the dot matrix method.

Characters are stored in two-dimensional array of dots. That’s


why this method is called dot matrix or bitmap method.

Depending on the size of the font, array size varies. Most


preferred sizes of the array are 7x5 and 9x7,where each
character is stored in said size of the array.
.

Computer Engineering 12
Company
Character Generation Methods
LOGO
Bitmap Method

Computer Engineering 13

You might also like