> > On Thu, 2004-04-08 at 18:33, Valeri Fine wrote: > > > > > > > > > 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. > > > > > > > You can do that with > > > > http://root.cern.ch/root/htmldoc/TImage.html#TImage:FromPad > > http://root.cern.ch/root/htmldoc/TImage.html#TImage:EImageFileTypes > > Great. Could PNG be added to the "Save canvas as..." file type list, > then? One said it doesn't work under Win32gdk yet, it could be an obstacle for the time being. > Anyway it is there with Qt ROOT (it doesn't matter what the platform is, either is good). See: http://root.bnl.gov/QtRoot/TQtSaveAsDialog.gif ) However Qt version does not use ROOT TImage interface class to implement the TCanvas "Save As" dialog. It uses the "QPixmap::save" method directly (no extra and heavy class like TImage is needed to be loaded in addition via ROOT plug-in) (see: http://doc.trolltech.com/3.3/qpixmap.html#save ) TImage (TQtImage) implementation uses another Qt class, namely QImage and its "save" method see: http://doc.trolltech.com/3.3/qimage.html#save Qt layer can be added to any existent ROOT version (see: http://root.bnl.gov/QtRoot/How2Install4Unix.html ) Hope this helps, Valeri > 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