IT. Expert System.

C

setlinestyle()


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:
enum line_styles 
{ 
   SOLID_LINE, 
   DOTTED_LINE, 
   CENTER_LINE, 
   DASHED_LINE, 
   USERBIT_LINE 
};


Example:

#include 
 
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;
}


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
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 с