Getting pixel color and OS X

Ok, I have a gif with a bunch of sprite on it all in a horizontal row. I want
to split each sprite into a seperate surface. Each sprite has at least one
full vertical black line between it and the next. my problem is that
something is being screwy and I am not able to loop through correctly. I
susspect it has something to do with bye order, but I’m not entirely sure.
Can anyone help with this little dilemma?

Could be anything, and you’re not even saying what the problem is. I
think you have to be a lot more specific…

All I can say is that I can’t understand how it could possibly be a
byte order problem. If you’re copying pixels manually, byte order is
irrelevant. (Only BytesPerPixel matters.) If you’re just using the
SDL blitters (the obvious method, unless you’re doing "weird stuff"
or actual image processing), you shouldn’t get anywhere near byte
order at all - SDL will handle all that.

//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Tuesday 27 May 2003 06.43, Iain Hartley wrote:

Ok, I have a gif with a bunch of sprite on it all in a horizontal
row. I want to split each sprite into a seperate surface. Each
sprite has at least one full vertical black line between it and the
next. my problem is that something is being screwy and I am not
able to loop through correctly. I susspect it has something to do
with bye order, but I’m not entirely sure. Can anyone help with
this little dilemma?

Well, I fixed it. I was just pulling the wrong information. Anyway, I was
reading from a GIF file and reading the index of a pixel directly from the
pixel data. I got the program working and it ripped all my sprites, so I’m
set.