RE: [ROOT] PNG output?

From: Bertrand Bellenot (bellenot_b@bluewin.ch)
Date: Sat Apr 10 2004 - 10:33:23 MEST


Hi Valeriy and Valeri :)

About this point, as TASImage and libAfterImage 
are working on my PC, I tried pad2png.C but it 
does not works because pixmap2asimage is only 
working on X11 (take a look at ximage.c). 
Will take a look at this point next week (I will 
be away this week-end)

Cheers,
Bertrand.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch] On Behalf Of Valeriy Onuchin
Sent: Saturday, April 10, 2004 12:26 AM
To: Valeri Fine; 'Andy Buckley'; roottalk@cern.ch
Subject: Re: [ROOT] PNG output?


Hi Valeri, I meant,
recently Sasha Vasko ported libAfterImage
http://afterstep.sourceforge.net/afterimage/ 
to win32. Bertrand Bellenot made correspondent
changes to make it available in ROOT (win32gdk).
"Strangelly enough, it is not" incorporated in ROOT yet.  

Regards. Valeriy



> > 
> > Just FYI, it's ready under "multithreaded version of ROOT under
> Windows ".
> > Strangelly enough, it is not in CVS yet.
> 
> Hello Valeriy,
> I did not understand
> Did you say the line
> 
>      c->Update()
> 
>  had been added to the pad2png.C ROOT macro?
> 
>   Thank you, Valeri Fine
> 
> 
> > 
> > Regards. Valeriy
> > 
> > 
> > > 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