|
- Using the drawing functions
- Pattern and PHP
- Drawing in Browser code
dPen (Function) In french: dStylo
// Initialize the drawing in an Image control dStartDrawing(IMG_Drawing) // Declare the default color and style for the different lines dPen(LightGreen, 3)
Versions 24 and later New in version 24 Syntax
dPen([<Image>, ] <Color> [, <Line style> [, <Line thickness> [, <Opacity>]]])
<Image>: Optional control name or optional Image, WDPic or picLayer variable Versions 24 and later New in version 24
<Color>: Integer or constant Default color for the different lines. This color can correspond to:- an RGB color (returned by RGB),
- an HSL color (returned by HSL),
- a preset color of WLanguage.
- a Color variable. In this case, the opacity specified in the variable is taken into account.
  Not available.
<Line style>: Optional integer Default style for the different lines:- 0 (by default): Solid line
- 1: Dash (---)
- 2: Dotted line (...)
- 3: Dot and dash (-.-.-)
- 4: Dash and two dots (-..-..-)
- 5: Invisible line
Versions 16 and later New in version 16 <Line thickness>: Optional integer Thickness of the line in pixels (1 by default). <Opacity>: Optional integer Opacity of color, included between 0 (transparent) and 255 (opaque). An opacity set to 128 is used to blend 50% of the color with the existing color found in the control.Remarks: - This opacity will be taken into account if the drawing in the Image control has been initialized with the constant dWithOpacity (function dStartDrawing).
Versions 23 and laterIf the <Color> parameter corresponds to a Color variable, this parameter must not be specified: the opacity specified in the variable will be taken into account. New in version 23If the <Color> parameter corresponds to a Color variable, this parameter must not be specified: the opacity specified in the variable will be taken into account. If the <Color> parameter corresponds to a Color variable, this parameter must not be specified: the opacity specified in the variable will be taken into account.
Remarks Versions 16 and later New in version 16
Related Examples:
|
Unit examples (WINDEV): The drawing functions
[ + ] Using the main drawing functions of WINDEV to: - Initialize an Image control for drawing - Draw simple shapes - Write a text into a drawing - Change the color in a drawing
|
Business / UI classification : Neutral code
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |