Beispiel #1
0
        protected override void ReadValue(PsdReader reader, object userData, out IProperties value)
        {
            value = new Properties();

            short version = reader.ReadInt16();
            int count = reader.ReadInt16();

            for (int i = 0; i < count; i++)
            {
                string _8bim = reader.ReadAscii(4);
                string effectType = reader.ReadAscii(4);
                int size = reader.ReadInt32();
                long p = reader.Position;

                switch (effectType)
                {
                    case "dsdw":
                        {
                            //ShadowInfo.Parse(reader);
                        }
                        break;
                    case "sofi":
                        {
                            //this.solidFillInfo = SolidFillInfo.Parse(reader);
                        }
                        break;
                }

                reader.Position = p + size;
            }
        }
Beispiel #2
0
        protected override void ReadValue(PsdReader reader, object userData, out IProperties value)
        {
            Properties props = new Properties();

            int count = reader.ReadInt32();

            List<DescriptorStructure> dss = new List<DescriptorStructure>();

            for (int i = 0; i < count; i++)
            {
                string s = reader.ReadAscii(4);
                string k = reader.ReadAscii(4);
                var c = reader.ReadByte();
                var p = reader.ReadBytes(3);
                var l = reader.ReadInt32();
                var p2 = reader.Position;
                var ds = new DescriptorStructure(reader);
                dss.Add(ds);
                reader.Position = p2 + l;
            }

            props["Items"] = dss;

            value = props;
        }
Beispiel #3
0
        protected override void ReadValue(PsdReader reader, object userData, out IProperties value)
        {
            Properties props = new Properties();

            int count = reader.ReadInt32();

            List <DescriptorStructure> dss = new List <DescriptorStructure>();

            for (int i = 0; i < count; i++)
            {
                string s  = reader.ReadAscii(4);
                string k  = reader.ReadAscii(4);
                var    c  = reader.ReadByte();
                var    p  = reader.ReadBytes(3);
                var    l  = reader.ReadInt32();
                var    p2 = reader.Position;
                var    ds = new DescriptorStructure(reader);
                dss.Add(ds);
                reader.Position = p2 + l;
            }

            props["Items"] = dss;

            value = props;
        }
Beispiel #4
0
        protected override void ReadData(PsdReader reader, object userData)
        {
            short version = reader.ReadInt16();
            int   count   = reader.ReadInt16();

            for (int i = 0; i < count; i++)
            {
                string _8bim      = reader.ReadAscii(4);
                string effectType = reader.ReadAscii(4);
                int    size       = reader.ReadInt32();
                long   p          = reader.Position;

                switch (effectType)
                {
                case "dsdw":
                {
                    //ShadowInfo.Parse(reader);
                }
                break;

                case "sofi":
                {
                    //this.solidFillInfo = SolidFillInfo.Parse(reader);
                }
                break;
                }

                reader.Position = p + size;
            }
        }
Beispiel #5
0
        protected override void ReadValue(PsdReader reader, Object userData, out IProperties value)
        {
            value = new Properties();

            Int16 version = reader.ReadInt16();
            Int32 count   = reader.ReadInt16();

            for (Int32 i = 0; i < count; i++)
            {
                String _8bim      = reader.ReadAscii(4);
                String effectType = reader.ReadAscii(4);
                Int32  size       = reader.ReadInt32();
                Int64  p          = reader.Position;

                switch (effectType)
                {
                case "dsdw":
                {
                    //ShadowInfo.Parse(reader);
                }
                break;

                case "sofi":
                {
                    //this.solidFillInfo = SolidFillInfo.Parse(reader);
                }
                break;
                }

                reader.Position = p + size;
            }
        }
Beispiel #6
0
        protected override void ReadValue(PsdReader reader, Object userData, out IProperties value)
        {
            Properties props = new Properties();

            props["Name"] = reader.ReadAscii(4);
            value         = props;
        }
Beispiel #7
0
        protected override void ReadData(PsdReader reader, object userData)
        {
            int count = reader.ReadInt32();

            List <StructureDescriptor> dss = new List <StructureDescriptor>();

            for (int i = 0; i < count; i++)
            {
                string s  = reader.ReadAscii(4);
                string k  = reader.ReadAscii(4);
                var    c  = reader.ReadByte();
                var    p  = reader.ReadBytes(3);
                var    l  = reader.ReadInt32();
                var    p2 = reader.Position;
                var    ds = new StructureDescriptor(reader);
                dss.Add(ds);
                reader.Position = p2 + l;
            }

            //props["Items"] = dss;
        }
        public StructureAlias(PsdReader reader)
        {
            int length = reader.ReadInt32();

            this.Add("Alias", reader.ReadAscii(length));
        }
Beispiel #9
0
 protected override void ReadValue(PsdReader reader, object userData, out IProperties value)
 {
     Properties props = new Properties();
     props["Name"] = reader.ReadAscii(4);
     value = props;
 }
Beispiel #10
0
 protected override void ReadData(PsdReader reader, object userData)
 {
     name = reader.ReadAscii(4);
 }
Beispiel #11
0
 public StructureAlias(PsdReader reader)
 {
     int length = reader.ReadInt32();
     this.Add("Alias", reader.ReadAscii(length));
 }
Beispiel #12
0
        public StructureAlias(PsdReader reader)
        {
            int length = reader.ReadInt32();

            Alias = reader.ReadAscii(length);
        }