What script code do I need to automatically add a background image to a graph box?
Here's a sample of a simple script I use to create a graph box:
win = New Window( "Map",
Graph Box(
Frame Size(600, 600),
X Scale(0, 1252),
Y Scale(0, 1252),
Pen Color("white"),
Line( {10, 10}, {10, 1200} );
Line( {600, 10}, {600, 1200} );
Line( {1200, 10}, {1200, 1200} );
)
);After I run the above script I can drag and drop a jpg image into the background and manipulate it (rotate, change size, change transparency, etc.).
What code do I need to automate adding the jpg image background as part of the script?