ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • BMP file as destination
  • Creating and drawing a chart through programming
  • Differences between grDestinationBMP and grSaveBMP
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
Defines a BitMap file as destination of a chart (BMP means BitMap). This file will be created during the next chart drawing (grDraw).
Remarks:
  • This function cannot be used with the Chart controls.
  • This function cannot be used in the report editor.
  • This function cannot be used to draw a cylinder chart in 3D.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// Define the "C:\Charts\Chart.BMP" file
// as destination of "MyChart"
grDestinationBMP("MyChart", "C:\Charts\Chart.BMP")
Syntax
grDestinationBMP(<Chart name> , <Name of BMP file>)
<Chart name>: Character string
Name of chart to use, defined by grCreate.
<Name of BMP file>: Character string
Name of the BMP file where the chart will be saved. This file is created during the call to grDraw.
Remarks

BMP file as destination

  • During the next call to grDraw, the chart will be drawn in the <Name of BMP file> file.
  • This file can be read by a tool that recognizes the BMP format.
  • The size of this file can be defined by grWndSize.
  • We recommend that you preview the chart before it is saved in a file.

Creating and drawing a chart through programming

To draw a chart:

Differences between grDestinationBMP and grSaveBMP

  • grDestinationBMP is used to define the destination of the next chart drawing. When grDraw is used, the chart will be drawn in the specified file and all the changes made since the chart was last drawn will be taken into account.
  • grSaveBMP is used to save the chart in a file in BMP format. The image saved corresponds to the chart during the last call to grDraw. The changes made to the chart since grDraw was last called will be ignored.
Related Examples:
The Chart functions Unit examples (WEBDEV): The Chart functions
[ + ] This example presents the main features of the chart designer of WEBDEV and it allows you to:
- Create a chart: Pie, Column or Line
- Define the display area of a chart
- Define the options of the chart (legend, percentage, ...)
Component: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help