{"id":24832,"date":"2017-10-15T11:43:06","date_gmt":"2017-10-15T06:13:06","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24832"},"modified":"2017-10-15T11:46:36","modified_gmt":"2017-10-15T06:16:36","slug":"setfillstyle-function-c","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/setfillstyle-function-c\/","title":{"rendered":"setfillstyle function in c"},"content":{"rendered":"<p>setfillstyle function sets the current fill pattern and fill color.<\/p>\n<p>Declaration :- void setfillstyle( int pattern, int color);<\/p>\n<p>Different fill 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 fill_styles <br\/>{ <br\/>   EMPTY_FILL, <br\/>   SOLID_FILL, <br\/>   LINE_FILL, <br\/>   LTSLASH_FILL, <br\/>   SLASH_FILL,<br\/>   BKSLASH_FILL, <br\/>   LTBKSLASH_FILL, <br\/>   HATCH_FILL, <br\/>   XHATCH_FILL, <br\/>   INTERLEAVE_FILL,<br\/>   WIDE_DOT_FILL, <br\/>   CLOSE_DOT_FILL, <br\/>   USER_FILL <br\/>};<\/code><\/pre> <\/div>\n<h2 id=\"ad-typebanner\">[ad type=&#8221;banner&#8221;]<\/h2>\n<h2 id=\"c-programming-source-code-for-setfillstyle\">C programming source code for setfillstyle<\/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\/>#include&lt;conio.h&gt;<br\/> <br\/>main()<br\/>{<br\/>   int gd = DETECT, gm;<br\/> <br\/>   initgraph(&amp;gd, &amp;gm, &quot;C:\\\\TC\\\\BGI&quot;);<br\/> <br\/>   setfillstyle(XHATCH_FILL, RED);<br\/>   circle(100, 100, 50);<br\/>   floodfill(100, 100, WHITE);<br\/> <br\/>   getch();<br\/>   closegraph();<br\/>   return 0;<br\/>}<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n","protected":false},"excerpt":{"rendered":"<p>setfillstyle function in c &#8211; c programming &#8211; setfillstyle function sets the current fill pattern and fill color and the declaration is int pattern,int color<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82927,1],"tags":[82977,83163,83165,83159,83145,82958,82979,83166,83164,83146,83161,83147,83162,83160,76930,82975],"class_list":["post-24832","post","type-post","status-publish","format-standard","hentry","category-c-programming-2","category-coding","tag-callback-function-in-c","tag-difference-between-setfillstyle-and-flood-fill","tag-fillellipse-function-in-c","tag-floodfill-function-in-c-graphics","tag-function-in-c-example","tag-function-in-c-programming","tag-functions-in-c-pdf","tag-how-to-fill-color-in-circle-in-c-graphics","tag-how-to-fill-color-in-computer-graphics","tag-how-to-use-excel","tag-how-to-use-setfillstyle-in-ubuntu","tag-ms-excel-formulas-list","tag-setlinestyle-function-in-c","tag-solid-fill-in-c-graphics","tag-string-functions-in-c","tag-types-of-functions-in-c"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24832","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=24832"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24832\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}