-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathIntroduction.html
More file actions
216 lines (202 loc) · 13.9 KB
/
Introduction.html
File metadata and controls
216 lines (202 loc) · 13.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<!--Google Tag Manager-->
<script class="gtm">
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-W59SWTR");
</script>
<!--End Google Tag Manager-->
<meta charset="utf-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="Welcome to Virtual Labs - A MHRD Govt of india Initiative" name="description" />
<meta content="Virtual Labs - A MHRD Govt of india Initiative" name="author" />
<title>Welcome to Virtual Labs - A MHRD Govt of india Initiative</title>
<link href="../images/favicon.ico" rel="shortcut icon" />
<link href="../css/bootstrap.min.css" rel="stylesheet" />
<!-- Important Owl stylesheet -->
<link href="../vendors/owl-carousel/owl.carousel.css" rel="stylesheet" />
<link href="../vendors/owl-carousel/owl.theme.css" rel="stylesheet" />
<link href="../vendors/font-awesome/css/font-awesome.css" rel="stylesheet" />
<!-- Custom CSS -->
<link href="../css/style.css" rel="stylesheet" />
<link href="../css/style-main.css" rel="stylesheet" />
<script src="tabs.js" type="text/javascript"></script>
<script>
(function (i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(window, document, "script", "//www.google-analytics.com/analytics.js", "ga");
ga("create", "UA-67020197-1", "auto");
ga("send", "pageview");
</script>
</head>
<body class="index" id="page-top">
<!--Google Tag Manager (noscript)-->
<noscript class="gtm"><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-W59SWTR" style="display: none; visibility: hidden;" width="0"></iframe></noscript>
<!--End Google Tag Manager (noscript)-->
<div id="top">
<header>
<!-- Navigation -->
<nav class="navbar navbar-default" style="background-color: white !important; margin-bottom: 0px !important;">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button class="navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar" style="background-color: #77bb41;"></span>
<span class="icon-bar" style="background-color: #77bb41;"></span>
<span class="icon-bar" style="background-color: #77bb41;"></span>
</button>
<a class="navbar-brand main-logo-a" href="http://vlab.co.in/"><img class="img-responsive main-logo" src="../images/logo-new.png" /></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse menu-div" id="bs-example-navbar-collapse-1" style="border: 0px;">
<!-- <ul class="nav navbar-nav navbar-right menu-ul search-ul" style="position: relative; top: -5px;">
<li>
<form method="get" action="../search-result.html">
<input type="text" class="search-textbox" placeholder="SEARCH FOR A LAB" name="q" id="q"/>
<input type="submit" value="" class="search-button" />
</form>
</li>
</ul>
-->
<ul class="nav navbar-nav navbar-right menu-ul">
<li class="page-scroll menu-li">
<a class="menu-a" href="http://vlab.co.in/">HOME</a>
</li>
<!-- <li class="page-scroll menu-li menu-li-active">
<a href="http://vlabs.ac.in/labs.html" class="menu-a menu-a-active" >ALL LABS</a>
</li> -->
<li class="page-scroll menu-li">
<a class="menu-a" href="http://vlab.co.in/participating-institutes">PARTNERS</a>
</li>
<li class="page-scroll menu-li">
<a class="menu-a" href="http://vlab.co.in/contact-us">CONTACT</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</header>
<div id="content">
<div class="container-fluid">
<div class="row">
<div class="row" style="height: 16px !important;">
<hr style="background: #ff6600 !important; height: 8px; margin-top: 0px;" />
</div>
<!-- row end -->
</div>
<!-- container-fluid end for slider -->
<!-- =================================================================================================================================== -->
<div class="container-fluid" style="margin-left: 35px; margin-right: 35px;">
<h2 class="text-h2-lightblue" style="margin-bottom: 20px; margin-top: 10px;">
<a class="sidebar-a" href="http://vlabs.ac.in/computer-science-and-engineering-labs.html">Computer Science & Engineering</a> <i aria-hidden="true" class="fa fa-angle-right" style="font-size: 30px;padding-right: 4px;"></i> <a class="sidebar-a" href="../Introduction.html">Computer Graphics</a> <i aria-hidden="true" class="fa fa-angle-right" style="font-size: 30px;padding-right: 4px;"></i>
<a class="sidebar-a" href="../List of experiments.html">Experiments</a><br />
</h2>
<div class="row">
<div class="col-md-2 sidebar-col-2">
<a class="sidebar-a" href="Introduction.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px; color: #FF6600">Introduction</h3> </a>
<a class="sidebar-a" href="Theory.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Theory</h3> </a>
<a class="sidebar-a" href="Objective.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Objective</h3> </a>
<a class="sidebar-a" href="Manual.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Manual</h3> </a>
<a class="sidebar-a" href="Procedure.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Procedure</h3> </a>
<a class="sidebar-a" href="Experiment.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Experiment</h3> </a>
<!-- <a class="sidebar-a" href="Quizzes.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;"> Quizzes </h3> </a> -->
<a class="sidebar-a" href="Further Readings.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Further Readings</h3> </a>
<a class="sidebar-a" href="Feedback.html?domain=Computer Science&lab=Computer Graphics"> <h3 class="text-h3-darkblue" style="margin-top: 2px;">Feedback</h3> </a>
</div>
<div class="col-md-10 lab-list-col-10">
<!--edit -->
<h1 class="text-h1-lightblue">Rasterization : Line</h1>
<div class="content" id="experiment-article-section-1-content">
<p>
In digital display systems, everything that is displayed, is displayed in terms of a smallest unit of display, which is called a pixel. This is in contrast to what we perceive the world to be as
continuous. The space occupied by any image in digital display system is measured in terms of pixels. Thus we require to transform the continuous space in which we define he geometry of any figure to a
discrete space for display in digital displays. This transformation is called <b>rasterization</b> or <b>scan conversion</b><br />
<br />
When a line is transformed from its continous form of <i>y = mx + c</i> into a discrete form of a set of pixels, this transformation is called <b>line rasterization</b>. Thus when we apply line
rasterization technique on a line, <i>y = mx + c</i>, we obtain the set of pixels that are required to be filled in order to fit the given continuous line in the best possible manner. Some common
algorithms to perform line rasterization are as follows:
</p>
<ol style="list-style-type: lower-latin;">
<li>Bresenham's line algorithm</li>
<li>Digital Differential Analyzer(DDA) algorithm</li>
<li>Xiaolin Wu's algorithm</li>
</ol>
Here we have discussed only the Bresenham's Line Rasterization algorithm.
<p></p>
</div>
</div>
</div>
</div>
<!-- =================================================================================================================================== -->
</div>
<!-- content div -->
<footer id="footer">
<div class="footer-top" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<h4>Community Links</h4>
<p>
<!-- <a href="http://www.sakshat.ac.in/">Sakshat Portal</a> -->
</p>
<p>
<!-- <a href="http://outreach.vlabs.ac.in/">Outreach Portal</a> -->
</p>
<p>
<!-- <a href="http://vlab.co.in/faq">FAQ : Virtual Labs</a> -->
</p>
</div>
<div class="col-lg-4 col-md-6">
<h4>Contact Us</h4>
<p><strong>Phone:</strong> General Information : 011-26582050</p>
<p><strong>Email:</strong> support@vlab.co.in</p>
</div>
<div class="col-lg-4 col-md-6">
<h4>Follow Us</h4>
<div class="social-links">
<a class="twitter" href="https://twitter.com/TheVirtualLabs" style="background: #55acee;">
<i class="fa fa-twitter"></i>
</a>
<a class="facebook" href="https://www.facebook.com/Virtual-Labs-IIT-Delhi-301510159983871/" style="background: #3b5998;">
<i class="fa fa-facebook"></i>
</a>
<a class="google-plus" href="https://www.youtube.com/watch?v=asxRaOgk6a0" style="background: #e52d27;">
<i class="fa fa-youtube"></i>
</a>
<a class="linkedin" href="https://in.linkedin.com/in/virtual-labs-008ba9136" style="background: #2867b2;">
<i class="fa fa-linkedin"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</footer>
</div>
<!-- top div -->
</body>
<!-- jQuery -->
</html>