Maxim, see documentation of TAttFill to get transparency http://root.cern.ch/root/htmldoc/TAttFill.html use c1->SetFillStyle(4000); or for any other object paint with a fill area Rene Brun Maxim Nikulin wrote: > > Hi, > > I agree that transparent regions instead of white ones are annoying, but > I see an opposite problem. I can't get transparent canvas in a EPS file. > > The script > > { > c1 = new TCanvas("c1", "c1"); > c1->SetFillColor(kWhite); > c1->SetBorderMode(0); > c1->Modified(); > c1->Update(); > c1->Print("transparent_canvas.eps"); > } > > produces white filled rectangle. I use the tex file to test the real color: > > \documentclass{article} > \usepackage{graphicx} > \usepackage{color} > \begin{document} > \pagecolor{green} > \includegraphics[width=5cm]{transparent_canvas.eps} > \end{document} > > Even > c1->SetAttFillPS(0, 0); > doesn't help. > > And the same for gif files: > http://root.cern.ch/phpBB2/viewtopic.php?t=269 > > -- > Maxim Nikulin
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET