PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
  • Pattern and PHP
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 control.
Versions 25 and later
Java This function is now available for Java applications.
New in version 25
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Versions 24 and later
Java The syntax that manages the Color type is now available for Java applications.
New in version 24
Java The syntax that manages the Color type is now available for Java applications.
Java The syntax that manages the Color type is now available for Java applications.
Example
// Draw a circle whose background is light yellow and
// whose border is light blue in an Image control
IMG_Drawing.DrawCircle(10, 10, 50, 50, LightYellow, LightBlue)
Syntax
<Image control>.DrawCircle(<X1> , <Y1> , <X2> , <Y2> [, <Background color> [, <Line color>]])
<Image control>: Control name
Name of an Image control 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 <Image>.Pen,
  • is identical to the Color used for the Background if the <Image>.Pen function has not been 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: wd260pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment