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 drawing of the chart (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 the 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 the 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 the 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
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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 the 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 drawing of the chart 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, ...)
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment