Byte order of System.Drawing.Imaging.PropertyItem

Payton Doud 0 Reputation points
2023-06-28T21:48:37.1033333+00:00

How can one tell the byte order of a System.Drawing.Imaging.PropertyItem.Value byte[]?

Jpeg EXIF data can either have Intel (II/Little Endian) or Motorola (MM/Big Endian) byte align and I see no way to get what type of align it is from these objects. For my current scenario I luckily only need the 0x0112 Orientation tag and the most significant byte is always 0x00 so I can simply sum the byte[]. For future scenarios though I will need to know the byte order as that will not always be the case for other tags.

Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.