[vala/staging: 1/2] SDL2_image: Add save functions
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/2] SDL2_image: Add save functions
- Date: Tue, 22 Dec 2020 15:39:56 +0000 (UTC)
commit adbec43e7d2e556a3a522846b809342c70bf064b
Author: Mario Daniel Ruiz Saavedra <desiderantes93 gmail com>
Date: Thu Dec 17 19:22:46 2020 +0000
SDL2_image: Add save functions
Add save functions for JPG and PNG formats.
vapi/SDL2_image.vapi | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/vapi/SDL2_image.vapi b/vapi/SDL2_image.vapi
index 7bb65dc58..6cc2fe021 100644
--- a/vapi/SDL2_image.vapi
+++ b/vapi/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]