Browse Source

Add endianess comment/question

pull/20/head
James Jackson-South 9 years ago
parent
commit
b230f5d9fb
  1. 1
      src/ImageSharp/PixelAccessor.cs

1
src/ImageSharp/PixelAccessor.cs

@ -60,6 +60,7 @@ namespace ImageSharp
for (int x = 0; x < width; x++)
{
// TODO: Do we need this? Only the encoder/decoder cares about the endianess. We should pass it in LittleEndian and let them work it out.
if (BitConverter.IsLittleEndian)
{
*destination = *(source + 1);

Loading…
Cancel
Save