PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • BMP file as destination
  • Creating and drawing a chart by programming
  • Differences between grDestinationBMP and grSaveBMP
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
Defines a BitMap file as destination of a chart (BMP means BitMap). This file will be created during the next chart drawing (grDraw).
Notes:
  • 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.
Versions 15 and later
WEBDEV - Server codeLinux 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 charts for more details.
New in version 15
WEBDEV - Server codeLinux 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 charts for more details.
WEBDEV - Server codeLinux 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 charts for more details.
Versions 16 and later
Linux This function is now available for WINDEV applications in Linux.
New in version 16
Linux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
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 (with quotes)
Name of chart to use, defined by grCreate.
<Name of BMP file>: Character string (with quotes)
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 by programming

To draw a chart:

Differences between grDestinationBMP and grSaveBMP

  • grDestinationBMP is used to define the destination of next chart drawing. When using grDraw, the chart will be drawn in the specified file and all the modifications performed since the last chart drawing 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 modifications performed on the chart since the last call to grDraw 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 : wd240grf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment