PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
  • Coordinates
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Draws a circle or an ellipse in an Image variable.
Example
MyImage is Image = "Test.gif"
// Draw a circle whose background is light yellow and
// whose border is light blue in an Image control
MyImage.DrawCircle(10, 10, 50, 50, LightYellow, LightBlue)
IMG_MyDrawing = MyImage
Syntax
<Image variable>.DrawCircle(<X1> , <Y1> , <X2> , <Y2> [, <Background color> [, <Line color>]])
<Image variable>: Image variable
Name of Image 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)
Background color of circle. This color corresponds to:
If this parameter is not specified, the background color:
<Line color>: Integer or constant (optional)
Color of circle line. This color corresponds to:
If this parameter is not specified, the line color:
  • corresponds to the color specified in the last call to <Image>.Pen,
  • is identical to the background color if <Image>.Pen was not used.
Remarks

Coordinates

The coordinates are specified in relation to the top left corner of 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
Component : wd240pnt.dll
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment