/// <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"); } }
/// <summary> /// Reads the image descriptor. /// </summary> private void ReadImageDescriptor() { this.stream.Read(this.buffer, 0, 9); this.imageDescriptor = GifImageDescriptor.Parse(this.buffer); }
/// <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)); }