Open rose512.jpg and save it in the following formats: .png, .gif, .xpm and tiff. 
 
void imgconv()
{
      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");
 
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
An abstract interface to image processing library.
 
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
 
- Author
 - Valeriy Onuchin 
 
Definition in file imgconv.C.