MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Export

Method Export

include/Image.hpp:296–300  ·  view source on GitHub ↗

* Export image data to file, returns true on success * * @throws raylib::RaylibException Thrown if the image failed to load from the file. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ExportImageFunction · 0.85
RaylibExceptionClass · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected