[ROOT] How to get transparent canvas

From: Maxim Nikulin (nikulin@gorodok.net)
Date: Thu Aug 12 2004 - 06:02:01 MEST


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