public static ColorTable ColorTable(MetafileReader reader) { int startIndex = reader.ReadColorIndex(); var colors = new List <MetafileColor>(); while (reader.HasMoreData()) { colors.Add(reader.ReadDirectColor()); } return(new ColorTable(startIndex, colors.ToArray())); }
public static MaximumColorIndex MaximumColorIndex(MetafileReader reader) { return(new MaximumColorIndex(reader.ReadColorIndex())); }