From 741987dcf37f55f0c81888d763007311ca0f951c Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Mon, 18 May 2026 11:25:52 +0200 Subject: [PATCH] [gui] add bmp to possible save options adding svg does not seem easy since it's not part of TImage --- gui/gui/src/TGFrame.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/gui/src/TGFrame.cxx b/gui/gui/src/TGFrame.cxx index fe138062b3c49..710a2e98f802b 100644 --- a/gui/gui/src/TGFrame.cxx +++ b/gui/gui/src/TGFrame.cxx @@ -133,6 +133,7 @@ TGLayoutHints *TGCompositeFrame::fgDefaultHints = nullptr; static const char *gSaveMacroTypes[] = { "ROOT macros", "*.C", + "BMP", "*.bmp", "GIF", "*.gif", "PNG", "*.png", "JPEG", "*.jpg", @@ -1573,6 +1574,8 @@ Bool_t TGMainFrame::SaveFrameAsCodeOrImage(const TString &fileName) gtype = TImage::kTiff; } else if (fname.EndsWith(".xpm")) { gtype = TImage::kXpm; + } else if (fname.EndsWith(".bmp")) { + gtype = TImage::kBmp; } if (gtype != TImage::kUnknown) { Int_t saver = gErrorIgnoreLevel;