void imgconv()
{
   // Open rose512.jpg and save it in the following formats:
   //  .png, .gif, .xpm and tiff.
   //Author: Valeriy Onuchin
   
   TImage *img = TImage::Open("rose512.jpg");
   if (!img) {
      printf("Could not create an image... exit\n");
      return;
   }

   img->WriteImage("rose512.png");
   img->WriteImage("rose512.gif");
   img->WriteImage("rose512.xpm");
   img->WriteImage("rose512.tiff");
}

Last change: Wed Dec 17 10:56:30 2008
Last generated: 2008-12-17 10:56

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.