{"id":24834,"date":"2017-09-08T18:27:04","date_gmt":"2017-09-08T12:57:04","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24834"},"modified":"2017-09-08T18:27:04","modified_gmt":"2017-09-08T12:57:04","slug":"setlinestyle-in-c","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/setlinestyle-in-c\/","title":{"rendered":"setlinestyle in c"},"content":{"rendered":"<p>Declaration:<br \/>\nvoid setlinestyle( int linestyle, unsigned upattern, int thickness );<\/p>\n<p>Available line styles:<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">enum line_styles <br\/>{ <br\/>   SOLID_LINE, <br\/>   DOTTED_LINE, <br\/>   CENTER_LINE, <br\/>   DASHED_LINE, <br\/>   USERBIT_LINE <br\/>};<\/code><\/pre> <\/div>\n<h2 id=\"c-programming-code\">C programming code<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">#include &lt;graphics.h&gt;<br\/> <br\/>main()<br\/>{<br\/>   int gd = DETECT, gm, c , x = 100, y = 50;<br\/> <br\/>   initgraph(&amp;gd, &amp;gm, &quot;C:\\\\TC\\\\BGI&quot;);<br\/> <br\/>   for ( c = 0 ; c &lt; 5 ; c++ )<br\/>   {<br\/>       setlinestyle(c, 0, 2);<br\/> <br\/>       line(x, y, x+200, y);<br\/>       y = y + 25;<br\/>   }<br\/> <br\/>   getch(); <br\/>   closegraph();<br\/>   return 0;<br\/>}<\/code><\/pre> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>setlinestyle in c &#8211; c programming &#8211; Declaration:void setlinestyle( int linestyle, unsigned upattern, int thickness );<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[83084,83086,83087,83077,83082,83083,83078,83076,83074,83085,83080,83081,83079,83072,83073,83075],"class_list":["post-24834","post","type-post","status-publish","format-standard","hentry","category-coding","tag-and-operator-in-c","tag-arithmetic-operator-in-c","tag-bitwise-or-operator-in-c","tag-c-program-to-draw-a-dotted-line-using-dda-algorithm","tag-c-operators","tag-c-operators-list","tag-dashed-line-program-in-c","tag-how-to-draw-thick-line-in-computer-graphics","tag-line-style-in-computer-graphics","tag-logical-or-in-c","tag-multiple-inheritance-in-c-program","tag-operator-overloading-in-c-program","tag-set-line-style-in-c-graphics","tag-setfillstyle-function-in-c","tag-setlinestyle-syntax","tag-settextstyle-function-in-c-graphics"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=24834"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24834\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}