setlinestyle in c
Declaration:
void setlinestyle( int linestyle, unsigned upattern, int thickness );
Available line styles:
Declaration:
void setlinestyle( int linestyle, unsigned upattern, int thickness );
Available line styles:
enum line_styles
{
SOLID_LINE,
DOTTED_LINE,
CENTER_LINE,
DASHED_LINE,
USERBIT_LINE
}; #include <graphics.h>
main()
{
int gd = DETECT, gm, c , x = 100, y = 50;
initgraph(&gd, &gm, "C:\\TC\\BGI");
for ( c = 0 ; c < 5 ; c++ )
{
setlinestyle(c, 0, 2);
line(x, y, x+200, y);
y = y + 25;
}
getch();
closegraph();
return 0;
} Wikitechy Founder, Author, International Speaker, and Job Consultant. My role as the CEO of Wikitechy, I help businesses build their next generation digital platforms and help with their product innovation and growth strategy. I'm a frequent speaker at tech conferences and events.
Our site uses cookies. By using this site, you agree to the Privacy Policy and Terms of Use.