https://github.com/root-project/root
Raw File
Tip revision: a48bb7fe1e147de1fad7e8775a664518df516f81 authored by Unknown Author on 29 May 2006, 10:03:03 UTC
This commit was manufactured by cvs2svn to create tag 'v5-10-00e'.
Tip revision: a48bb7f
imgconv.C
void imgconv()
{
   // Open rose512.jpg and save it in the following formats:
   //  .png, .gif, .xpm and tiff.

   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");
}
back to top