ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
imgconv.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_image
3
/// \notebook -nodraw
4
/// Open rose512.jpg and save it in the following formats:
5
/// .png, .gif, .xpm and tiff.
6
///
7
/// \macro_code
8
///
9
/// \author Valeriy Onuchin
10
11
void
imgconv()
12
{
13
TImage *img = TImage::Open(
"$ROOTSYS/tutorials/image/rose512.jpg"
);
14
if
(!img) {
15
printf(
"Could not create an image... exit\n"
);
16
return
;
17
}
18
19
img->WriteImage(
"rose512.png"
);
20
img->WriteImage(
"rose512.gif"
);
21
img->WriteImage(
"rose512.xpm"
);
22
img->WriteImage(
"rose512.tiff"
);
23
}
tutorials
image
imgconv.C
Generated on Tue May 5 2020 14:03:46 for ROOT by
1.8.5