///////////////////////////////////////////////////////////////////////////////// // // Photoshop PSD FileType Plugin for Paint.NET // http://psdplugin.codeplex.com/ // // This software is provided under the MIT License: // Copyright (c) 2006-2007 Frank Blumenberg // Copyright (c) 2010-2014 Tao Yue // // See LICENSE.txt for complete licensing and attribution information. // ///////////////////////////////////////////////////////////////////////////////// using System; using System.Diagnostics; namespace PhotoshopFile { [DebuggerDisplay("Layer Info: { key }")] internal class RawLayerInfo : LayerInfo { private string signature; public override string Signature { get { return signature; } } private string key; public override string Key { get { return key; } } public byte[] Data { get; private set; } public RawLayerInfo(string key, string signature = "8BIM") { this.signature = signature; this.key = key; } public RawLayerInfo(PsdBinaryReader reader, string signature, string key, long dataLength) { this.signature = signature; this.key = key; Util.CheckByteArrayLength(dataLength); Data = reader.ReadBytes((int)dataLength); } } }