Gerald Hernandez
12/17/2004 5:54:00 AM
There are any number of ways to deal with this.
From bit shifting, to pulling out the bytes and re-arranging them.
A long time ago while searching for a built-in way to do this in the
framework, I did finally find one. Due to the depth and vastness I knew it
must be in the somewhere, but it wasn't easy to find.
Check out System.Net.IPAddress
HostToNetworkOrder and NetworkToHostOrder
Although it is buried deep enough that I usually forget where I found it and
just use the old tried and true byte flipping method.
Gerald
"David A. Coursey" <DavidACoursey@discussions.microsoft.com> wrote in
message news:B208C830-4003-4770-B162-1FB3F22A21E1@microsoft.com...
> I am writing a small app to convert Group4 tiffs to Group3. I also need
them
> to be big endian for my system to accept it properly. I have gotten
> everything to work except for the byte order. I have searched every
> newsgroup I could find and nobody seems to be converting from little to
big
> endian. I couldn't even find anything in system.drawing.imaging, unless I
am
> looking in the wrong place.
>
> I would really appreciate some help on this.
>
> thanks
> dave