PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 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 15 and later
Linux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
New in version 15
Linux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
Linux This function is now available for WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
Versions 19 and later
Universal Windows 10 App This function is now available in Windows Store Apps mode.
New in version 19
Universal Windows 10 App This function is now available in Windows Store Apps mode.
Universal Windows 10 App This function is now available in Windows Store Apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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)
Background color of circle. 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 background color if <Image>.Pen 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 / GUI classification : Neutral code
Component : wd250pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment