Re: gdk_pixbuf_new_from_data...
- From: Douglas Ian Linder <linderdi cs curtin edu au>
- To: gtk-list gnome org
- Subject: Re: gdk_pixbuf_new_from_data...
- Date: Sun, 27 Apr 2003 00:46:37 +0800 (WST)
Nm. I figured it out. The rowstride ("rowstride : Distance in bytes
between rows.") is the length in bytes of a row, not the number of
bytes of padding between rows. *frowns at slightly ambiguous docs*
All good (although I'm not sure...I would have thought a rowstride
of 0 would strip the first row of pixels down the page, not give a
uniformally black image... I guess it's an implementation thing.
*shrugs*).
ciao,
Doug.
On Sat, 26 Apr 2003, Douglas Ian Linder wrote:
> Hmm...
>
> This is the first time I've played with pixbufs; anyone have any
> idea if there is something wrong with just calling:
>
> gtk_image_set_from_pixbuf (GTK_IMAGE(image), buffer);
>
> I've confirmed the pixbuf is fine, but all that get's rendered is
> a black square of pixels.
>
> ciao,
> Doug.
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]