Re: [Vala] Query !!



Sorry , I solved it by replacing the function:

Gdk.Pixbuf.from_data
Gdk.Pixbuf.with_unowned_data

Thanks and sorry for the trouble .

2015-10-22 19:57 GMT-03:00 Flavio Danesse <fdanesse gmail com>:

See if someone can help me with this :

The following example compiles fine , but to run it throws an error :

Rape segment (` core ' generated)

private unowned uint8[] array;

this.pixbuf = new Gdk.Pixbuf.from_file(path);

this.array = this.pixbuf.get_pixels();

Gdk.Pixbuf pix = new Gdk.Pixbuf.from_data(
    this.array, Gdk.Colorspace.RGB, this.pixbuf.has_alpha,
    this.pixbuf.bits_per_sample, this.pixbuf.width,
    this.pixbuf.height, this.pixbuf.rowstride, null);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]