mirror of https://github.com/SixLabors/ImageSharp
2 changed files with 23 additions and 13 deletions
@ -0,0 +1,23 @@ |
|||
// Copyright (c) Six Labors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
|
|||
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff |
|||
{ |
|||
/// <summary>
|
|||
/// Helper methods for the Configuration.
|
|||
/// </summary>
|
|||
public static class ConfigurationExtensions |
|||
{ |
|||
/// <summary>
|
|||
/// Registers the tiff format detector, encoder and decoder.
|
|||
/// </summary>
|
|||
/// <param name="configuration">The configuration.</param>
|
|||
public static void AddTiff(this Configuration configuration) |
|||
{ |
|||
configuration.ImageFormatsManager.AddImageFormat(TiffFormat.Instance); |
|||
configuration.ImageFormatsManager.AddImageFormatDetector(new TiffImageFormatDetector()); |
|||
configuration.ImageFormatsManager.SetDecoder(TiffFormat.Instance, new TiffDecoder()); |
|||
configuration.ImageFormatsManager.SetEncoder(TiffFormat.Instance, new TiffEncoder()); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue