#pragma warning restore RECS0126 // This is generated by the compiler and can be safely removed
		public GifFrameSection(GifBitmap parent, GifImageDescriptorHeader header) : base(parent)
		{
			Header = header;
			if (LocalColorTableFlag)
				LocalColorMap = new Color[SizeOfLocalColorMap];
			else
				LocalColorMap = null;
		}
		public GifImageDescriptor(GifImageDescriptorHeader header)
		{
			Header = header;
			if (LocalColorTableFlag)
				LocalColorMap = new Color[SizeOfLocalColorMap];
			else
				LocalColorMap = null;
		}
		public static GifImageDescriptorHeader Factory(Size sz, bool LocalMap = false)
		{
			var res = new GifImageDescriptorHeader();
			res.ImageWidth = (short)sz.Width;
			res.ImageHeight = (short)sz.Height;
			if (LocalMap)
			{
				res.Packed = (byte)(0x80 | 0x07);
			}
			return res;
		}