PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
  • Pattern and PHP
  • Drawing in Browser code
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Draw a circle or an ellipse in an Variable of type picLayer.
Versions 15 and later
WEBDEV - Server code This function is now available for WEBDEV sites in Linux.
New in version 15
WEBDEV - Server code This function is now available for WEBDEV sites in Linux.
WEBDEV - Server code This function is now available for WEBDEV sites in Linux.
Example
MonImage est un WDPic = "Test.gif"
MonCalque est un picCalque
 
// Dessin d'un cercle dont le fond est jaune clair et
// le bord bleu clair dans un calque d'une variable WDPic
MonCalque.DessineCercle(10, 10, 50, 50, JauneClair, BleuClair)
IMG_MonDessin = MonImage
Syntax
<picLayer image>.DrawCircle(<X1> , <Y1> , <X2> , <Y2> [, <Background color> [, <Line color>]])
<picLayer image>: picLayer variable
Name of the picLayer variable to use.
<X1>: Integer
X-coordinate of top left corner of the rectangle containing the circle. These coordinates are expressed in pixels.
<Y1>: Integer
Y-coordinate of top left corner of the rectangle containing the circle. These coordinates are expressed in pixels.
<X2>: Integer
X-coordinate of bottom right corner of the rectangle containing the circle. These coordinates are expressed in pixels.
<Y2>: Integer
Y-coordinate of bottom right corner of the rectangle containing the circle. These coordinates are expressed in pixels.
<Background color>: Integer or constant (optional)
Circle background color. This color can correspond to:If this parameter is not specified, the background color:
<Line color>: Integer or constant (optional)
Color of circle line. This color can correspond to:If this parameter is not specified, the line color:
  • corresponds to the color specified in the last call to dPen,
  • is identical to the Color used for the Background if the dPen function was not used.
Remarks

Coordinates

The coordinates are specified in relation to the top left corner of the Image control (coordinates set to (0,0)).
Related Examples:
The drawing functions 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
Component: wd270pnt.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment