From 7e8e78070f19acaf3e674c857dab89257b75cbb1 Mon Sep 17 00:00:00 2001 From: Vicente Penades Date: Thu, 1 Mar 2018 09:39:05 +0100 Subject: [PATCH] Added a convenience copy constructor. --- src/ImageSharp/Configuration.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ImageSharp/Configuration.cs b/src/ImageSharp/Configuration.cs index 0f69194f2d..771e2007fd 100644 --- a/src/ImageSharp/Configuration.cs +++ b/src/ImageSharp/Configuration.cs @@ -33,6 +33,18 @@ namespace SixLabors.ImageSharp { } + /// + /// Initializes a new instance of the class. + /// + /// A configuration instance to be copied + public Configuration(Configuration configuration) + { + this.ParallelOptions = configuration.ParallelOptions; + this.ImageFormatsManager = configuration.ImageFormatsManager; + this.MemoryManager = configuration.MemoryManager; + this.ImageOperationsProvider = configuration.ImageOperationsProvider; + } + /// /// Initializes a new instance of the class. ///