MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / saveImageDialog

Method saveImageDialog

Source/Falcor/Utils/Image/Bitmap.cpp:577–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void Bitmap::saveImageDialog(Texture* pTexture)
578{
579 std::filesystem::path path;
580 auto supportExtensions = getFileDialogFilters(pTexture->getFormat());
581
582 if (saveFileDialog(supportExtensions, path))
583 {
584 std::string ext = getExtensionFromPath(path);
585 auto format = getFormatFromFileExtension(ext);
586 pTexture->captureToFile(0, 0, path, format);
587 }
588}
589
590void Bitmap::saveImage(
591 const std::filesystem::path& path,

Callers

nothing calls this directly

Calls 4

getExtensionFromPathFunction · 0.85
getFormatMethod · 0.80
captureToFileMethod · 0.80
saveFileDialogFunction · 0.50

Tested by

no test coverage detected