setlinestyle function is used to set the linestyle and it accepts 3 parameters as input. The first one is the line style it can be SOLID_LINE, DOTTED_LINE, CENTER_LINE, DASHED_LINE or USERBIT_LINE. The 2nd argument is to use the user bit pattern and the last one is line thickness it can be 1 pixel or 3 pixel wide.Syntax:
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;
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 19 / 158729974. Delta: 0.02689 с