Re: quick Qs about pixbuf manipulation



On Mon, 2002-07-01 at 11:47, Bill Haneman wrote:
> Hi:
> 
> I have a couple of quick questions that I hope someone can answer
> regarding the most efficient ways to:
...
> * access pixels on-the-fly
...
> * is there a better way to access the pixbuf internals?

You probably need something like:

	guchar *raw_image;
	gboolean has_alpha;
	gint rowstride, height, width;
	
	raw_image = gdk_pixbuf_get_pixels (pixbuf);
	has_alpha = gdk_pixbuf_get_has_alpha (pixbuf);
	rowstride = gdk_pixbuf_get_rowstride (pixbuf);
	height    = gdk_pixbuf_get_height (pixbuf);
	width     = gdk_pixbuf_get_width (pixbuf);







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