コード例 #1
0
        internal static GifImageData ReadImageData(Stream stream, bool metadataOnly)
        {
            GifImageData data = new GifImageData();

            data.Read(stream, metadataOnly);
            return(data);
        }
コード例 #2
0
 private void Read(Stream stream, IEnumerable <GifExtension> controlExtensions, bool metadataOnly)
 {
     this.Descriptor = GifImageDescriptor.ReadImageDescriptor(stream);
     if (this.Descriptor.HasLocalColorTable)
     {
         this.LocalColorTable = GifHelpers.ReadColorTable(stream, this.Descriptor.LocalColorTableSize);
     }
     this.ImageData  = GifImageData.ReadImageData(stream, metadataOnly);
     this.Extensions = controlExtensions.ToList <GifExtension>().AsReadOnly();
 }
コード例 #3
0
ファイル: GifFrame.cs プロジェクト: zdchupka/HMCT
        private void Read(Stream stream, IEnumerable <GifExtension> controlExtensions, bool metadataOnly)
        {
            // Note: at this point, the Image Separator (0x2C) has already been read

            Descriptor = GifImageDescriptor.ReadImageDescriptor(stream);
            if (Descriptor.HasLocalColorTable)
            {
                LocalColorTable = GifHelpers.ReadColorTable(stream, Descriptor.LocalColorTableSize);
            }
            ImageData  = GifImageData.ReadImageData(stream, metadataOnly);
            Extensions = controlExtensions.ToList().AsReadOnly();
        }
コード例 #4
0
 internal static GifImageData ReadImageData(Stream stream, bool metadataOnly)
 {
     var imgData = new GifImageData();
     imgData.Read(stream, metadataOnly);
     return imgData;
 }