Ejemplo n.º 1
0
        /// <summary>
        /// Reads the image descriptor.
        /// </summary>
        private void ReadImageDescriptor()
        {
            this.stream.Read(this.buffer, 0, 9);

            this.imageDescriptor = GifImageDescriptor.Parse(this.buffer);
            if (this.imageDescriptor.Height == 0 || this.imageDescriptor.Width == 0)
            {
                GifThrowHelper.ThrowInvalidImageContentException("Width or height should not be 0");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Reads the image descriptor.
        /// </summary>
        private void ReadImageDescriptor()
        {
            this.stream.Read(this.buffer, 0, 9);

            this.imageDescriptor = GifImageDescriptor.Parse(this.buffer);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Reads the image descriptor
        /// </summary>
        /// <returns><see cref="GifImageDescriptor"/></returns>
        private GifImageDescriptor ReadImageDescriptor()
        {
            this.stream.Read(this.buffer, 0, 9);

            return(GifImageDescriptor.Parse(this.buffer));
        }