public void fill (uint32 pixel);
public Gdk.Pixbuf? flip (bool horizontal);
[CCode (has_construct_function = false)]
- public Pixbuf.from_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify? destroy_fn);
+ public Pixbuf.from_data ([CCode (array_length = false)] owned uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = GLib.free);
[CCode (has_construct_function = false)]
public Pixbuf.from_file (string filename) throws GLib.Error;
[CCode (has_construct_function = false)]
public Gdk.Pixbuf scale_simple (int dest_width, int dest_height, Gdk.InterpType interp_type);
[CCode (has_construct_function = false)]
public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height);
+ [CCode (cname = "gdk_pixbuf_new_from_data", has_construct_function = false)]
+ public Pixbuf.take_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
public int bits_per_sample { get; construct; }
public Gdk.Colorspace colorspace { get; construct; }
public bool has_alpha { get; construct; }
namespace Gdk {
public class Pixbuf : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Pixbuf.from_data ([CCode (array_length = false)] owned uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = GLib.free);
+ [CCode (has_construct_function = false, cname = "gdk_pixbuf_new_from_data")]
+ public Pixbuf.take_data ([CCode (array_length = false)] uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = null);
[CCode (cname = "gdk_pixbuf_new_from_stream_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
public static async Gdk.Pixbuf new_from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
public delegate void PixbufDestroyNotify ([CCode (array_length = false)] uint8[] pixels);
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h", instance_pos = -0.9)]
public delegate bool PixbufSaveFunc ([CCode (array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
-}
\ No newline at end of file
+}
.flip nullable
.from_pixdata cheader_filename="gdk-pixbuf/gdk-pixdata.h"
.from_pixdata.copy_pixels default=true
- .new_from_data.data type="uint8[]"
+ .new_from_data skip
.new_from_inline.copy_pixels default=true
.new_from_stream_async skip
.new_from_stream_finish skip
// Upstream
Pixbuf
- .new_from_data.destroy_fn nullable
.new_from_inline.data type="uint8[]" array_length_idx=0
.get_file_info unowned
.get_file_info.width out