From af06ef0c68ff5fe72ebba48a01e004877af63f3f Mon Sep 17 00:00:00 2001 From: taigacon Date: Thu, 27 Feb 2020 11:39:01 +0800 Subject: [PATCH] Export PsdLayer.IsVisible to IPsdLayer --- Ntreev.Library.Psd/IPsdLayer.cs | 2 ++ Ntreev.Library.Psd/PsdDocument.cs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Ntreev.Library.Psd/IPsdLayer.cs b/Ntreev.Library.Psd/IPsdLayer.cs index b942d92..0cdfdd1 100644 --- a/Ntreev.Library.Psd/IPsdLayer.cs +++ b/Ntreev.Library.Psd/IPsdLayer.cs @@ -34,6 +34,8 @@ public interface IPsdLayer : IImageSource string Name { get; } + bool IsVisible { get; } + IPsdLayer Parent { get; } IProperties Resources { get; } diff --git a/Ntreev.Library.Psd/PsdDocument.cs b/Ntreev.Library.Psd/PsdDocument.cs index 9cff16b..d7cf789 100644 --- a/Ntreev.Library.Psd/PsdDocument.cs +++ b/Ntreev.Library.Psd/PsdDocument.cs @@ -155,6 +155,11 @@ internal void Read(Stream stream, PsdResolver resolver, Uri uri) #region IPsdLayer + public bool IsVisible + { + get { return true; } + } + IPsdLayer IPsdLayer.Parent { get { return null; }