| 575 | } |
| 576 | |
| 577 | void 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 | |
| 590 | void Bitmap::saveImage( |
| 591 | const std::filesystem::path& path, |
nothing calls this directly
no test coverage detected