PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Use conditions and limits
  • Creating and drawing a chart by programming
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
grDestinationImage (Function)
In French: grDestinationImage
Defines an Image variable as destination of a chart.
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.
Example
MyImage is Image
MyImage..Width = 100
MyImage..Height = 100
grCreate("MyChart", grPie)

// Defines the destination of the chart drawing
grDestinationImage("MyChart", MyImage)
// Adds the data
grAddData("MyChart", 1, 10)
...
// Draws the chart
grDraw("MyChart")
Syntax
grDestinationImage(<Chart Name> , <Name of Image Variable>)
<Chart Name>: Character string (with quotes)
Name of the chart to use, defined by grCreate.
<Name of Image Variable>: Image variable
Name of the Image variable where the chart will be drawn.
Remarks

Use conditions and limits

  • The chart will be drawn in the specified Image variable. The chart will be drawn on a white background. The previous drawing found in the Image variable will be erased.
  • This function cannot be used with the Chart controls.
  • WINDEV This function cannot be used to get the image of a 3D chart. The chart will be automatically converted to 2D.

Creating and drawing a chart by programming

To draw a chart:
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Linux wd230grf.so
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment