protected override void ReadValue(PsdReader reader, object userData, out LayerRecords value)
        {
            LayerRecords        records        = userData as LayerRecords;
            LayerMask           mask           = LayerMaskReader.Read(reader);
            LayerBlendingRanges blendingRanges = LayerBlendingRangesReader.Read(reader);
            string      name      = reader.ReadPascalString(4);
            IProperties resources = new LayerResourceReader(reader, this.EndPosition - reader.Position);

            records.SetExtraRecords(mask, blendingRanges, resources, name);

            value = records;
        }
Esempio n. 2
0
        public static LayerMask Read(PsdReader reader)
        {
            LayerMaskReader instance = new LayerMaskReader(reader);

            return(instance.Value);
        }