Re: Where does gdk_rgb_init() go?



> 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_*)

>
> 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]

Jean-Christophe





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