public void Populate(BinaryReader br) { InfoHeader.Populate(br); ColorMap = new Rgbquad[GetNumberOfColors()]; // read in the color table for (var i = 0; i < ColorMap.Length; ++i) { ColorMap[i].Populate(br); } }
public void Populate(BinaryReader br) { // read in the header Header.Populate(br); Colors = new Rgbquad[Header.BiClrUsed]; // read in the color table for (var i = 0; i < Header.BiClrUsed; ++i) { Colors[i].Populate(br); } // read in the XOR mask Xor = br.ReadBytes(NumBytesInXor()); // read in the AND mask And = br.ReadBytes(NumBytesInAnd()); }