imgconv.C

Go to the documentation of this file.
00001 void imgconv()
00002 {
00003    // Open rose512.jpg and save it in the following formats:
00004    //  .png, .gif, .xpm and tiff.
00005    //Author: Valeriy Onuchin
00006    
00007    TImage *img = TImage::Open("rose512.jpg");
00008    if (!img) {
00009       printf("Could not create an image... exit\n");
00010       return;
00011    }
00012 
00013    img->WriteImage("rose512.png");
00014    img->WriteImage("rose512.gif");
00015    img->WriteImage("rose512.xpm");
00016    img->WriteImage("rose512.tiff");
00017 }

Generated on Tue Jul 5 15:44:48 2011 for ROOT_528-00b_version by  doxygen 1.5.1