Re: [ROOT] PNG output?

From: Valeriy Onuchin (Valeri.Onoutchine@cern.ch)
Date: Fri Apr 09 2004 - 10:19:30 MEST


He VAlii,
do you really tried ever) "what you promoted"
or you  just repeat(beleave to) an advertisment (sorry, missspelling)

Regards. Valeriy

----- Original Message ----- 
From: "Valeri Fine" <fine@bnl.gov>
To: "'Valeriy Onuchin'" <Valeri.Onoutchine@cern.ch>; "'Andy Buckley'" <buckley@hep.phy.cam.ac.uk>; <roottalk@cern.ch>
Sent: Friday, April 09, 2004 12:54 AM
Subject: RE: [ROOT] PNG output?


> He VAliey
>   
> 
>   Can you make a tine correction for 
>   $ROOTSYS/tutotrials/pad2png.C
> 
>  Please add an operator
>     c->Update()
>  just before 
>      gSystem->ProcessEvents();
> 
> So entire macro to be as follows:
> 
> (hires07) [151] more  pad2png.C
> void pad2png()
> {
>    // Create a canvas and save as png.
> 
>    TCanvas *c = new TCanvas;
>    TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5);
>    h->FillRandom("gaus", 10000);
>    h->Draw();
> 
>    c->Update();
>    gSystem->ProcessEvents();
> 
>    TImage *img = TImage::Create();
> 
>    //img->FromPad(c, 10, 10, 300, 200);
>    img->FromPad(c);
> 
>    img->WriteImage("canvas.png");
> 
>    delete h;
>    delete c;
>    delete img;
> }
> 
> To help the multithreaded version of ROOT with Qt layer under Windows.
> It causes no harm.
> Thank you in advance,  
> 
> ----
> Best regards
>                    Valeri
> 
> 
> > -----Original Message-----
> > From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch] On
> > Behalf Of Valeriy Onuchin
> > Sent: Thursday, April 08, 2004 3:58 PM
> > To: Andy Buckley; roottalk@cern.ch
> > Subject: Re: [ROOT] PNG output?
> > 
> >  Hi Andy,
> > ROOT supports "PNG bitmap".
> > Please, check $ROOTSYS/tutotrials/pad2png.C
> > 
> > Regards. Valeriy
> > 
> > win32gdk PNG is "almost ready" :-)
> > 
> > >
> > > Hi again,
> > >
> > > Is there any possibility that PNG bitmap output can be supplied in
> ROOT
> > > in addition to GIF format? This would be very nice, since GIF has a
> > > certain stigma due to the LZW compression patent (even thought I
> believe
> > > it's now expired) and since PNG is simply a nicer, more modern
> format.
> > > Apologies if it's already supported --- I couldn't find any mention
> of
> > > it in the 4.00/03 release notes.
> > >
> > > Also, is there a way (e.g. a .rootrc directive) to specify the
> preferred
> > > output format from the canvas menu rather than have to drag the
> > > drop-down list to the right position each time? This would also be
> nice,
> > > but is rather less important!
> > >
> > > Andy
> > >
> > > --
> > > Andy Buckley, HEP Group, Cavendish Lab, Cambridge
> > > http://www.insectnation.org
> > >
> > >
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET