* Export image data to file, returns true on success * * @throws raylib::RaylibException Thrown if the image failed to load from the file. */
| 294 | * @throws raylib::RaylibException Thrown if the image failed to load from the file. |
| 295 | */ |
| 296 | void Export(const std::string& fileName) const { |
| 297 | if (!::ExportImage(*this, fileName.c_str())) { |
| 298 | throw RaylibException(TextFormat("Failed to export Image to file: %s", fileName.c_str())); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Export image to memory buffer |
nothing calls this directly
no test coverage detected