delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/07/10:25:54

Date: Tue, 7 Jun 94 10:15:31 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: fano AT norcov DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: libgrx and bitmap
Reply-To: babcock AT cfa DOT harvard DOT edu

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019