예제 #1
0
        public AdvImageLayout(AdvImageSection imageSection, byte layoutId, uint width, uint height, BinaryReader reader)
        {
            m_ImageSection = imageSection;
            LayoutId       = layoutId;
            Width          = width;
            Height         = height;

            byte version = reader.ReadByte();

            if (version >= 1)
            {
                BitsPerPixel = reader.ReadByte();

                byte propCnt = reader.ReadByte();
                for (int i = 0; i < propCnt; i++)
                {
                    string propName  = reader.ReadAsciiString256();
                    string propValue = reader.ReadAsciiString256();

                    ImageSerializationProperties.Add(propName, propValue);
                }
            }

            InitSerializationProperties();
        }
예제 #2
0
        public AdvImageLayout(AdvImageSection imageSection, byte layoutId, uint width, uint height, BinaryReader reader)
        {
            m_ImageSection = imageSection;
            LayoutId = layoutId;
            Width = width;
            Height = height;

            byte version = reader.ReadByte();

            if (version >= 1)
            {
                BitsPerPixel = reader.ReadByte();

                byte propCnt = reader.ReadByte();
                for (int i = 0; i < propCnt; i++)
                {
                    string propName = reader.ReadAsciiString256();
                    string propValue = reader.ReadAsciiString256();

                    ImageSerializationProperties.Add(propName, propValue);
                }
            }

            InitSerializationProperties();
        }