mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
WRaster: add functions to save image on disk
This patch adds the RSaveTitledImage() function to the WRaster lib to be able to save file on disk either as a PNG or a JPEG file. Those two formats depends on optional external libs. The function can take an optional title/comment which will be save inside the file. The WRaster lib and header versions are bumped.
This commit is contained in:
committed by
Carlos R. Mafra
parent
3cc5808dcd
commit
c8883fdbb0
@@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
/* version of the header for the library */
|
||||
#define WRASTER_HEADER_VERSION 24
|
||||
#define WRASTER_HEADER_VERSION 25
|
||||
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
@@ -391,6 +391,9 @@ RImage *RGetImageFromXPMData(RContext *context, char **xpmData)
|
||||
Bool RSaveImage(RImage *image, const char *filename, const char *format)
|
||||
__wrlib_nonnull(1, 2, 3);
|
||||
|
||||
Bool RSaveTitledImage(RImage *image, const char *filename, const char *format, char *title)
|
||||
__wrlib_nonnull(1, 2, 3);
|
||||
|
||||
/*
|
||||
* Area manipulation
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user