mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-08 18:26:35 +08:00
添加项目文件。
This commit is contained in:
27
WpfAnimatedGif/Decoding/GifImageData.cs
Normal file
27
WpfAnimatedGif/Decoding/GifImageData.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.IO;
|
||||
|
||||
namespace WpfAnimatedGif.Decoding
|
||||
{
|
||||
internal class GifImageData
|
||||
{
|
||||
public byte LzwMinimumCodeSize { get; set; }
|
||||
public byte[] CompressedData { get; set; }
|
||||
|
||||
private GifImageData()
|
||||
{
|
||||
}
|
||||
|
||||
internal static GifImageData ReadImageData(Stream stream, bool metadataOnly)
|
||||
{
|
||||
var imgData = new GifImageData();
|
||||
imgData.Read(stream, metadataOnly);
|
||||
return imgData;
|
||||
}
|
||||
|
||||
private void Read(Stream stream, bool metadataOnly)
|
||||
{
|
||||
LzwMinimumCodeSize = (byte)stream.ReadByte();
|
||||
CompressedData = GifHelpers.ReadDataBlocks(stream, metadataOnly);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user