Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions roottest/root/graf/simpleImages.C
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ int simpleImages()
TH1D h("myHisto", "The Title;the X;the Y", 64, -4, 4);
h.FillRandom("gaus");
h.Draw();
// We test png and jpeg only. The creation of the gifs
// is affected by an issue on some platforms. See #21561
std::vector<std::string> fileNames{"f.jpeg", "f.png", "f.gif"};
std::vector<std::string> fileNames{"f.jpeg", "f.png", "f.gif", "f.bmp"}; // TIFF not always there: only ON if asimage_tiff and libtiff installed in system (it's not a builtin like jpeg, png, gif)
ImagesRAII iraii(fileNames);
for (auto &&fileName : fileNames) {
c.SaveAs(fileName.c_str());
}
return 0;
}
}
1 change: 1 addition & 0 deletions roottest/root/graf/simpleImages.ref
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Info in <TCanvas::Print>: jpg file f.jpeg has been created
Info in <TCanvas::Print>: png file f.png has been created
Info in <TCanvas::Print>: gif file f.gif has been created
Info in <TCanvas::Print>: bmp file f.bmp has been created
(int) 0
Loading