Browse Source

fixes from rebase

af/merge-core
Scott Williams 9 years ago
parent
commit
286b53d867
  1. 29
      src/ImageSharp.Formats.Bmp/BootstrapperExtensions.cs
  2. 29
      src/ImageSharp.Formats.Bmp/ConfigurationExtensions.cs
  3. 29
      src/ImageSharp.Formats.Gif/BootstrapperExtensions.cs
  4. 29
      src/ImageSharp.Formats.Gif/ConfigurationExtensions.cs
  5. 29
      src/ImageSharp.Formats.Jpeg/BootstrapperExtensions.cs
  6. 29
      src/ImageSharp.Formats.Jpeg/ConfigurationExtensions.cs
  7. 29
      src/ImageSharp.Formats.Png/BootstrapperExtensions.cs
  8. 29
      src/ImageSharp.Formats.Png/ConfigurationExtensions.cs
  9. 14
      src/ImageSharp.Formats/ConfigurationExtensions.cs
  10. 2
      tests/ImageSharp.Tests/TestBase.cs

29
src/ImageSharp.Formats.Bmp/BootstrapperExtensions.cs

@ -1,29 +0,0 @@
// <copyright file="BootstrapperExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Image{TColor}"/> type.
/// </summary>
public static partial class BootstrapperExtensions
{
/// <summary>
/// Adds the BMP format.
/// </summary>
/// <param name="bootstrapper">The bootstrapper.</param>
/// <returns>The bootstraper</returns>
public static Bootstrapper AddBmpFormat(this Bootstrapper bootstrapper)
{
bootstrapper.AddImageFormat(new BmpFormat());
return bootstrapper;
}
}
}

29
src/ImageSharp.Formats.Bmp/ConfigurationExtensions.cs

@ -0,0 +1,29 @@
// <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Configuration"/> type.
/// </summary>
public static partial class ConfigurationExtensions
{
/// <summary>
/// Adds the BMP format.
/// </summary>
/// <param name="config">The config.</param>
/// <returns>The config</returns>
public static Configuration AddBmpFormat(this Configuration config)
{
config.AddImageFormat(new BmpFormat());
return config;
}
}
}

29
src/ImageSharp.Formats.Gif/BootstrapperExtensions.cs

@ -1,29 +0,0 @@
// <copyright file="BootstrapperExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Image{TColor}"/> type.
/// </summary>
public static partial class BootstrapperExtensions
{
/// <summary>
/// Adds the Gif format.
/// </summary>
/// <param name="bootstrapper">The bootstrapper.</param>
/// <returns>The Bootstrapper</returns>
public static Bootstrapper AddGifFormat(this Bootstrapper bootstrapper)
{
bootstrapper.AddImageFormat(new GifFormat());
return bootstrapper;
}
}
}

29
src/ImageSharp.Formats.Gif/ConfigurationExtensions.cs

@ -0,0 +1,29 @@
// <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Configuration"/> type.
/// </summary>
public static partial class ConfigurationExtensions
{
/// <summary>
/// Adds the Gif format.
/// </summary>
/// <param name="config">The config.</param>
/// <returns>The config</returns>
public static Configuration AddGifFormat(this Configuration config)
{
config.AddImageFormat(new GifFormat());
return config;
}
}
}

29
src/ImageSharp.Formats.Jpeg/BootstrapperExtensions.cs

@ -1,29 +0,0 @@
// <copyright file="BootstrapperExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Image{TColor}"/> type.
/// </summary>
public static partial class BootstrapperExtensions
{
/// <summary>
/// Adds the Jpeg format.
/// </summary>
/// <param name="bootstrapper">The bootstrapper.</param>
/// <returns>The Bootstrapper</returns>
public static Bootstrapper AddJpegFormat(this Bootstrapper bootstrapper)
{
bootstrapper.AddImageFormat(new JpegFormat());
return bootstrapper;
}
}
}

29
src/ImageSharp.Formats.Jpeg/ConfigurationExtensions.cs

@ -0,0 +1,29 @@
// <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Configuration"/> type.
/// </summary>
public static partial class ConfigurationExtensions
{
/// <summary>
/// Adds the Jpeg format.
/// </summary>
/// <param name="config">The config.</param>
/// <returns>The config</returns>
public static Configuration AddJpegFormat(this Configuration config)
{
config.AddImageFormat(new JpegFormat());
return config;
}
}
}

29
src/ImageSharp.Formats.Png/BootstrapperExtensions.cs

@ -1,29 +0,0 @@
// <copyright file="BootstrapperExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Image{TColor}"/> type.
/// </summary>
public static partial class BootstrapperExtensions
{
/// <summary>
/// Adds the Png format.
/// </summary>
/// <param name="bootstrapper">The bootstrapper.</param>
/// <returns>The Bootstrapper</returns>
public static Bootstrapper AddPngFormat(this Bootstrapper bootstrapper)
{
bootstrapper.AddImageFormat(new PngFormat());
return bootstrapper;
}
}
}

29
src/ImageSharp.Formats.Png/ConfigurationExtensions.cs

@ -0,0 +1,29 @@
// <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
using System;
using System.IO;
using Formats;
/// <summary>
/// Extension methods for the <see cref="Configuration"/> type.
/// </summary>
public static partial class ConfigurationExtensions
{
/// <summary>
/// Adds the Png format.
/// </summary>
/// <param name="config">The Image configurations.</param>
/// <returns>The Configuration object</returns>
public static Configuration AddPngFormat(this Configuration config)
{
config.AddImageFormat(new PngFormat());
return config;
}
}
}

14
src/ImageSharp.Formats/BootstrapperExtensions.cs → src/ImageSharp.Formats/ConfigurationExtensions.cs

@ -1,4 +1,4 @@
// <copyright file="BootstrapperExtensions.cs" company="James Jackson-South"> // <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors. // Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// </copyright> // </copyright>
@ -11,18 +11,18 @@ namespace ImageSharp
using Formats; using Formats;
/// <summary> /// <summary>
/// Extension methods for the <see cref="Image{TColor}"/> type. /// Extension methods for the <see cref="Configuration"/> type.
/// </summary> /// </summary>
public static partial class BootstrapperExtensions public static partial class ConfigurationExtensions
{ {
/// <summary> /// <summary>
/// Adds the common formats, PNG, JPEG, GIF and BMP. /// Adds the common formats, PNG, JPEG, GIF and BMP.
/// </summary> /// </summary>
/// <param name="bootstrapper">The bootstrapper.</param> /// <param name="config">The config.</param>
/// <returns>The bootstrapper</returns> /// <returns>The config</returns>
public static Bootstrapper AddCommonFormats(this Bootstrapper bootstrapper) public static Configuration AddCommonFormats(this Configuration config)
{ {
return bootstrapper return config
.AddPngFormat() .AddPngFormat()
.AddJpegFormat() .AddJpegFormat()
.AddGifFormat() .AddGifFormat()

2
tests/ImageSharp.Tests/TestBase.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Tests
{ {
protected TestBase() protected TestBase()
{ {
Bootstrapper.Default.AddCommonFormats(); Configuration.Default.AddCommonFormats();
} }
/// <summary> /// <summary>

Loading…
Cancel
Save