VersionInfo.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Photoshop PSD FileType Plugin for Paint.NET
  4. // http://psdplugin.codeplex.com/
  5. //
  6. // This software is provided under the MIT License:
  7. // Copyright (c) 2006-2007 Frank Blumenberg
  8. // Copyright (c) 2010-2012 Tao Yue
  9. //
  10. // See LICENSE.txt for complete licensing and attribution information.
  11. //
  12. /////////////////////////////////////////////////////////////////////////////////
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Linq;
  16. using System.Text;
  17. namespace PhotoshopFile
  18. {
  19. internal class VersionInfo : ImageResource
  20. {
  21. public override ResourceID ID
  22. {
  23. get { return ResourceID.VersionInfo; }
  24. }
  25. public UInt32 Version { get; set; }
  26. public bool HasRealMergedData { get; set; }
  27. public string ReaderName { get; set; }
  28. public string WriterName { get; set; }
  29. public UInt32 FileVersion { get; set; }
  30. public VersionInfo() : base(String.Empty)
  31. {
  32. }
  33. public VersionInfo(PsdBinaryReader reader, string name)
  34. : base(name)
  35. {
  36. Version = reader.ReadUInt32();
  37. HasRealMergedData = reader.ReadBoolean();
  38. ReaderName = reader.ReadUnicodeString();
  39. WriterName = reader.ReadUnicodeString();
  40. FileVersion = reader.ReadUInt32();
  41. }
  42. }
  43. }