"backgroundImage"

Sets a background image for a X/Y trend.

Synopsis

shape.backgroundImage(int area, string fileName);

getValue (string shape, "backgroundImage",int area, string &fileName );

Parameter

Parameter Description
shape Name of the object
area The trend area starting from 0.
fileName The name of the image. You can specify an absolute path or a relative path to the "Pictures" directory. If you specify an empty string as a file name, the image is deleted again.

Description

Sets a background image for a X/Y trend.

Example

Sets the background image etm.jpg for the trend "TREND1".

main()
{
  //Sets the background image
  TREND1.backgroundImage(0,"D:/Projects/DemoProj1/pictures/etm.jpg");
  //Returns the name of the background image string im;
  getValue("TREND1","backgroundImage",0,im);
  DebugN("The name of the image is:", im);
}
Figure 1. X/Y Trend and Background Image "etm.jpg"

Assignment

Trend