DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SetBackgroundImage Macro Command

 
Post new topic   Reply to topic    DPlot Forum Index -> Basic
View previous topic :: View next topic  
Author Message
dkabq



Joined: 20 Nov 2017
Posts: 5

PostPosted: Mon Nov 20, 2017 5:06 pm    Post subject: SetBackgroundImage Macro Command Reply with quote

When I execute the following macro command

ret = DPlot_Command(DocNum, "[SetBackgroundImage(""d:\dplot_files\image.png"", 1, 1, 1, 255)]")

the image is not placed in the foreground. I know that Dplot is using the command, as the plot extents are being adjusted to fit the image size.

Also, if I open the Dplot file I can get the image (which is listed Filename box) to be in the foreground by checking the "foreground" box.

Thanks in advance for the help.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Nov 20, 2017 5:34 pm    Post subject: Reply with quote

Use
[SetBackgroundImage(""filename"",1,1,0,0,0,0,1,255)]

If you're going to set the foreground or transparency, then left, top, right, bottom must be specified even though in this case they will not be used.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dkabq



Joined: 20 Nov 2017
Posts: 5

PostPosted: Tue Nov 21, 2017 9:34 am    Post subject: Reply with quote

Doh!!!

Thanks for kindly pointing out what should have been obvious to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Basic All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group