ict.lixian.three/Assets/APNG/LibAPNG/Chunks/acTLChunk.cs

32 lines
655 B
C#

using System.IO;
namespace LibAPNG
{
public class acTLChunk : Chunk
{
public acTLChunk(byte[] bytes)
: base(bytes)
{
}
public acTLChunk(MemoryStream ms)
: base(ms)
{
}
public acTLChunk(Chunk chunk)
: base(chunk)
{
}
public uint NumFrames { get; private set; }
public uint NumPlays { get; private set; }
protected override void ParseData(MemoryStream ms)
{
NumFrames = Helper.ConvertEndian(ms.ReadUInt32());
NumPlays = Helper.ConvertEndian(ms.ReadUInt32());
}
}
}