Re: filled TBox doesn't print properly...

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 02 1999 - 17:38:15 MEST


Hi Phil,
Replace your line
 box->SetFillStyle(1);
by
 box->SetFillStyle(1001);

See http://root.cern.ch/root/html/TAttFill.html

Rene Brun

Phil Adamson wrote:
> 
> Folks,
>         I can't seem to get a filled TBox to appear filled in postscript
> output. The following macro produces a red box on screen, a red box when
> saved as a gif, but an outline box in the postscript.
> 
> Tested with root 2.22/10.
> 
>         Phil
> 
> void box()
> {
>   gROOT->Reset();
>   TCanvas *c = new TCanvas("c","c",100,100,500,500);
>   c->Range(0,0,100,100);
>   box = new TBox(20,20,40,40);
>   box->SetFillStyle(1);
>   box->SetFillColor(2);
>   box->Draw();
>   c->Update();
>   c->Print("c.ps");
> }



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET