Hi Marian, Assuming that somewhere (static variable or a class variable) you have an integer (int number) and you want to print your canvas c1 with a filename composed with this integer, you can do something like: static int number=0; //somewhere or class member then number++; c1->Print(Form("FileName%d.eps",number)); //will do what you want Rene Brun On Mon, 10 Jun 2002, liliac wrote: > Hi there, > > I am running ROOT as a graphic interface in Windows. Since our application is > a time dependent one for each time step we have an image that should be saved > in eps format (for the sake of simplicity). > > Does anybody know how can dynamically the image name be incremented : > > h1->Print("FileNameXXX.eps") where XXX stands for a numerical increment of the > time step ?? > > Thank you and wish you a nice day, > Marian > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:56 MET