|
- Coordinates of the arc
- Drawing a solid figure
- Using the drawing functions
- Pattern and PHP
- Drawing in Browser code
dArc (Function) In french: dArc
// Initialize the drawing in the Image control IMG_MyDrawing dStartDrawing(IMG_MyDrawing) // Draw an arc of circle in light yellow dArc(10, 10, 50, 50, 20, 20, 40, 50, LightYellow)
Syntax
Drawing an arc Hide the details
dArc([<Image>, ] <X1> , <Y1> , <X2> , <Y2> , <X3> , <Y3> , <X4> , <Y4> [, <Line color> [, <Line thickness>]])
<Image>: Optional control name or optional Image, WDPic or picLayer variable <X1>: entier X coordinate (in pixels) of top left corner of the rectangle containing the circle. <Y1>: entier Y coordinate (in pixels) of top left corner of the rectangle containing the circle. <X2>: entier X coordinate (in pixels) of bottom right corner of the rectangle containing the circle. <Y2>: entier Y coordinate (in pixels) of bottom right corner of the rectangle containing the circle. <X3>: entier X coordinate (in pixels) of start point of the arc of circle. <Y3>: entier Y coordinate (in pixels) of start point of the arc of circle. <X4>: entier X coordinate (in pixels) of end point of the arc of circle. <Y4>: entier Y coordinate (in pixels) of end point of the arc of circle. <Line color>: Integer or constant (optional) Color of the arc of circle. This color can correspond to:If this parameter is not specified, the line color:- is Transparent if dPen has not been used beforehand,
- corresponds to the Color specified in the last call to the dPen function..
<Line thickness>: Optional integer Versions 25 and later New in version 25
Remarks Coordinates of the arc If the start and end points are not located on the border of the circle (or on the border of the ellipse), the point taken into account corresponds to the intersection between the circle and the line that joins the specified point and the center of the rectangle (which means the center of the circle).
The origin considered to calculate the coordinates corresponds to the top left corner of the Image (coordinates (0,0)). Limitation for dArc: The opacity defined by dBackground is ignored. 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 |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |