[vala-extra-vapis] SDL2_image: Add save functions
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] SDL2_image: Add save functions
- Date: Tue, 29 Dec 2020 15:21:28 +0000 (UTC)
commit 681e66d8608bfacde906f1a43b2eab2dda8f2ef5
Author: Mario Daniel Ruiz Saavedra <desiderantes93 gmail com>
Date: Tue Dec 29 16:21:02 2020 +0100
SDL2_image: Add save functions
Add save functions for JPG and PNG formats.
SDL2_image.vapi | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/SDL2_image.vapi b/SDL2_image.vapi
index 7bb65dc..ff1495a 100644
--- a/SDL2_image.vapi
+++ b/SDL2_image.vapi
@@ -123,6 +123,18 @@ namespace SDLImage {
[CCode (cname = "IMG_ReadXPMFromArray")]
public static SDL.Video.Surface? read_xpm (string[] xpmdata);
+ [CCode (cname = "IMG_SavePNG")]
+ public static int save_as_png (SDL.Video.Surface surface, string file);
+
+ [CCode (cname = "IMG_SavePNG_RW")]
+ public static int save_as_png_rw (SDL.Video.Surface surface, SDL.RWops dst, bool freedst);
+
+ [CCode (cname = "IMG_SaveJPG")]
+ public static int save_as_jpg (SDL.Video.Surface surface, string file, int quality);
+
+ [CCode (cname = "IMG_SaveJPG_RW")]
+ public static int save_as_jpg_rw (SDL.Video.Surface surface, SDL.RWops dst, bool freedst, int
quality);
+
//!Info
[CCode (cname = "IMG_isCUR")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]