mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-11 22:08:15 +00:00
ADDED: ExportImageToMemory()
Only PNG supported for now
This commit is contained in:
@@ -1243,6 +1243,7 @@ RLAPI Image LoadImageFromScreen(void);
|
||||
RLAPI bool IsImageReady(Image image); // Check if an image is ready
|
||||
RLAPI void UnloadImage(Image image); // Unload image from CPU memory (RAM)
|
||||
RLAPI bool ExportImage(Image image, const char *fileName); // Export image data to file, returns true on success
|
||||
RLAPI unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize); // Export image to memory buffer
|
||||
RLAPI bool ExportImageAsCode(Image image, const char *fileName); // Export image as code file defining an array of bytes, returns true on success
|
||||
|
||||
// Image generation functions
|
||||
|
Reference in New Issue
Block a user