internal void Read(GifReader reader, GifLogicalScreenDescriptorBlock gifLogicalScreenDescriptorBlock) { bytes = reader.ReadBytes(gifLogicalScreenDescriptorBlock.GlobalColorTableSize * 3); //byte[] globalColorTableBuffer = reader.ReadBytes(globalColorTableSize * 3); //globalColorTable = new Color[globalColorTableSize]; //int baseIndex = 0; //for (UInt16 colorIndex = 0; colorIndex < globalColorTableSize; colorIndex++) //{ // globalColorTable[colorIndex] = Color.FromArgb(globalColorTableBuffer[baseIndex], globalColorTableBuffer[baseIndex + 1], globalColorTableBuffer[baseIndex + 2]); // baseIndex += 3; //} }
internal void Read(GifReader reader, GifImageDescriptorBlock gifImageDescriptorBlock) { bytes = reader.ReadBytes(gifImageDescriptorBlock.LocalColorTableSize * 3); }