From f8b352f6d979bd7bfb960fc776bea0e9d39bf9da Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 3 Jun 2023 19:51:16 +0200 Subject: ADDED: `ExportImageToMemory()` Only PNG supported for now --- src/raylib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/raylib.h') diff --git a/src/raylib.h b/src/raylib.h index 56acd6ad..f6a48bc7 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -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 -- cgit v1.2.3