Re: Where does gdk_rgb_init() go?
- From: "Tara M" <learfox furry ao net>
- To: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>, "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: Where does gdk_rgb_init() go?
- Date: 06 Aug 2001 00:56:01 PDT
On Mon, 6 Aug 2001 09:29:33 +0200, Jean-Christophe Berthon said:
> Should I put gdk_rgb_init() before or after gtk_init_*()?
I think you just have to use this function before any call to gdk_rgb_*
functions (so better to put it after the gtk_init_*)
I did some testing, core dumps if you put it before.
So it confirms, it needs to be placed after gtk_init_*().
> Btw, what is the rowstride argument in gdk_draw_rgb_image()
> for? Is it the number of bytes per row?
It is the amount of bytes (octets) use for one line, so for example for a
24bits image it is 3 (8bits * 3 = 24bits & 8bits = 1byte) times the width of
the image [+ optionnaly a few bytes to fill]
I figured that one out too, but double-thanks to ya! :)
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
.__ ,_JNMNNEO=_ /|\
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
] [Thread Prev