Browse Source

Added a convenience copy constructor.

af/merge-core
Vicente Penades 8 years ago
parent
commit
7e8e78070f
  1. 12
      src/ImageSharp/Configuration.cs

12
src/ImageSharp/Configuration.cs

@ -33,6 +33,18 @@ namespace SixLabors.ImageSharp
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Configuration"/> class.
/// </summary>
/// <param name="configuration">A configuration instance to be copied</param>
public Configuration(Configuration configuration)
{
this.ParallelOptions = configuration.ParallelOptions;
this.ImageFormatsManager = configuration.ImageFormatsManager;
this.MemoryManager = configuration.MemoryManager;
this.ImageOperationsProvider = configuration.ImageOperationsProvider;
}
/// <summary>
/// Initializes a new instance of the <see cref="Configuration" /> class.
/// </summary>

Loading…
Cancel
Save