LoadContext.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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-2016 Tao Yue
  9. //
  10. // Portions of this file are provided under the BSD 3-clause License:
  11. // Copyright (c) 2006, Jonas Beckeman
  12. //
  13. // See LICENSE.txt for complete licensing and attribution information.
  14. //
  15. /////////////////////////////////////////////////////////////////////////////////
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using System.Text;
  20. using System.Threading.Tasks;
  21. namespace PhotoshopFile
  22. {
  23. /// <summary>
  24. /// Contains settings and callbacks that affect the loading of a PSD file.
  25. /// </summary>
  26. public class LoadContext
  27. {
  28. public Encoding Encoding { get; set; }
  29. public LoadContext()
  30. {
  31. Encoding = Encoding.Default;
  32. }
  33. public virtual void OnLoadLayersHeader(PsdFile psdFile)
  34. {
  35. }
  36. public virtual void OnLoadLayerHeader(Layer layer)
  37. {
  38. }
  39. }
  40. }