Mail Archives: djgpp/1994/06/07/10:25:54
> I am using LIBGRX at the moment and try to get bitmaps converted
> to pixmaps. Its almost fine. But some vertical lines (columns) get
> interchanged. I do it as follows :
I think you're seeing that binary files are not portable. The particular
problem is probably that the machines in question disagree on whether the
least or most significant bytes of a word come first in memory. You might
find it useful to look at the functions htonl and htons which swap the order
of bytes.
- Raw text -