| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /////////////////////////////////////////////////////////////////////////////////
- //
- // 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-2012 Tao Yue
- //
- // See LICENSE.txt for complete licensing and attribution information.
- //
- /////////////////////////////////////////////////////////////////////////////////
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace PhotoshopFile
- {
- internal class VersionInfo : ImageResource
- {
- public override ResourceID ID
- {
- get { return ResourceID.VersionInfo; }
- }
- public UInt32 Version { get; set; }
- public bool HasRealMergedData { get; set; }
- public string ReaderName { get; set; }
- public string WriterName { get; set; }
- public UInt32 FileVersion { get; set; }
- public VersionInfo() : base(String.Empty)
- {
- }
- public VersionInfo(PsdBinaryReader reader, string name)
- : base(name)
- {
- Version = reader.ReadUInt32();
- HasRealMergedData = reader.ReadBoolean();
- ReaderName = reader.ReadUnicodeString();
- WriterName = reader.ReadUnicodeString();
- FileVersion = reader.ReadUInt32();
- }
- }
- }
|