local function t(t,n)local a=n.Data t.Width=a:ReadInt32()t.Height=a:ReadInt32()t.BitDepth=a:ReadByte()t.ColorType=a:ReadByte()t.Methods={Compression=a:ReadByte();Filtering=a:ReadByte(),Interlace=a:ReadByte()}end return t
local function IHDR(file, chunk)
	local data = chunk.Data
	
	file.Width = data:ReadInt32();
	file.Height = data:ReadInt32();
	
	file.BitDepth = data:ReadByte();
	file.ColorType = data:ReadByte();
	
	file.Methods =
	{
		Compression = data:ReadByte();
		Filtering   = data:ReadByte();
		Interlace   = data:ReadByte();
	}
end

return IHDR