Browse Source

👮

pull/533/head
Jason Nelson 9 years ago
parent
commit
a07df43441
  1. 7
      src/ImageSharp/Formats/Gif/GifEncoderCore.cs

7
src/ImageSharp/Formats/Gif/GifEncoderCore.cs

@ -175,13 +175,11 @@ namespace SixLabors.ImageSharp.Formats.Gif
pixelAspectRatio: 0, pixelAspectRatio: 0,
globalColorTableFlag: false, // TODO: Always false for now. globalColorTableFlag: false, // TODO: Always false for now.
globalColorTableSize: this.bitDepth - 1, globalColorTableSize: this.bitDepth - 1,
backgroundColorIndex: unchecked((byte)transparencyIndex) backgroundColorIndex: unchecked((byte)transparencyIndex));
);
descriptor.WriteTo(this.buffer); descriptor.WriteTo(this.buffer);
stream.Write(this.buffer, 0, GifLogicalScreenDescriptor.Size); stream.Write(this.buffer, 0, GifLogicalScreenDescriptor.Size);
} }
/// <summary> /// <summary>
@ -261,8 +259,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
disposalMethod: metaData.DisposalMethod, disposalMethod: metaData.DisposalMethod,
transparencyFlag: transparencyIndex > -1, transparencyFlag: transparencyIndex > -1,
transparencyIndex: unchecked((byte)transparencyIndex), transparencyIndex: unchecked((byte)transparencyIndex),
delayTime: (ushort)metaData.FrameDelay delayTime: (ushort)metaData.FrameDelay);
);
extension.WriteTo(this.buffer); extension.WriteTo(this.buffer);

Loading…
Cancel
Save