Re: How is GdkPixbuf pixel data stored?

2003-03-30 Thread Sven Neumann
Hi, Christopher Andrew Chenery <[EMAIL PROTECTED]> writes: > My Question is simply why are there two extra bytes per image row, what do > they represent and what is a rowstride? - the documentation assumes this > knowledge! rowstride is the number of bytes you need to skip to get to the same c

Re: How is GdkPixbuf pixel data stored?

2003-03-28 Thread Havoc Pennington
On Thu, Mar 27, 2003 at 03:36:02PM +0800, Christopher Andrew Chenery wrote: > I then output the rowstride for the image which was 8 (bytes per row) > which prompted me to hack the code to loop 16 times and got: > > 255, 255, 255, 255, 255, 255, 80, 64, 255, 255, 255, 255, 255, 255, 0, 0, > rows

How is GdkPixbuf pixel data stored?

2003-03-28 Thread Christopher Andrew Chenery
Hi I'm looking to manipulate a GdkPixbuf at the pixel level and have found that the actual pixel data is not stored in the way I expected. In order to get the pixel data I have used the following code (where image is a static GtkWidget declared in the header file): void pixel_data(GtkWidget *w