"imageToFile"
Saves an image of a graphics object (screenshot).
Synopsis
shape.imageToFile( string fileName);
setValue(string shape, "imageToFile", string fileName");
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
fileName | The file name , for example, "C://Images/Trend1". The image is saved as a PNG file. |
Description
Saves an image of a graphics object (screenshot).
Example
Saves an image of the trend (screenshot of the trend).
main()
{
TREND1.imageToFile("C://Images/Trend1");
}
Can also be used to save a image of the whole panel (see example below).
Example
Saves the image of the panel to the file "panelimg.png".
main()
{
setValue(myModuleName() + "." + myPanelName() + ":", "imageToFile", "panelimg.png");
}
Assignment
All widgets