Пример #1
0
        public static void CodePixFormat(this ICoder coder, ref PixFormat pixFormat)
        {
            var    reading    = coder.IsReading;
            Type   type       = reading ? null : pixFormat.Type;
            string formatName = reading ? null : pixFormat.Format.GetName().ToString();

            coder.CodeType(ref type);
            coder.CodeString(ref formatName);
            if (reading)
            {
                pixFormat = new PixFormat(type, Col.FormatOfName(formatName));
            }
        }