コード例 #1
0
        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()));
        }
コード例 #2
0
 public static MaximumColorIndex MaximumColorIndex(MetafileReader reader)
 {
     return(new MaximumColorIndex(reader.ReadColorIndex()));
 }