* Unload image from CPU memory (RAM) */
| 282 | * Unload image from CPU memory (RAM) |
| 283 | */ |
| 284 | void Unload() { |
| 285 | if (data != nullptr) { |
| 286 | ::UnloadImage(*this); |
| 287 | data = nullptr; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Export image data to file, returns true on success |