public PixbufDestroyNotifyWrapper(Gdk.PixbufDestroyNotify managed) { this.managed = managed; if (managed != null) { NativeDelegate = new PixbufDestroyNotifyNative(NativeCallback); } }
public PixbufDestroyNotifyWrapper (Gdk.PixbufDestroyNotify managed) { this.managed = managed; if (managed != null) NativeDelegate = new PixbufDestroyNotifyNative (NativeCallback); }
public Pixbuf(byte[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn) : base(IntPtr.Zero) { if (GetType () != typeof (Pixbuf)) { throw new InvalidOperationException ("Can't override this constructor."); } DestroyHelper helper = new DestroyHelper (data, destroy_fn); Raw = gdk_pixbuf_new_from_data(data, (int) colorspace, has_alpha, bits_per_sample, width, height, rowstride, helper.Handler, IntPtr.Zero); }
// overload to default the colorspace public Pixbuf(byte [] data, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn) : this(data, Gdk.Colorspace.Rgb, has_alpha, bits_per_sample, width, height, rowstride, destroy_fn) { }