Browse Source

Fix permissions

af/merge-core
James Jackson-South 7 years ago
parent
commit
2b6521536f
  1. 6
      src/ImageSharp/PixelFormats/PixelAlphaCompositionMode.cs
  2. 2
      src/ImageSharp/PixelFormats/PixelBlenders/DefaultPixelBlenders.Generated.cs
  3. 2
      src/ImageSharp/PixelFormats/PixelBlenders/DefaultPixelBlenders.Generated.tt
  4. 8
      src/ImageSharp/PixelFormats/PixelOperations{TPixel}.PixelBenders.cs

6
src/ImageSharp/PixelFormats/PixelAlphaCompositionMode.cs

@ -9,17 +9,17 @@ namespace SixLabors.ImageSharp.PixelFormats
public enum PixelAlphaCompositionMode
{
/// <summary>
/// returns the destination over the source.
/// Returns the destination over the source.
/// </summary>
SrcOver = 0,
/// <summary>
/// returns the source colors.
/// Returns the source colors.
/// </summary>
Src,
/// <summary>
/// returns the source over the destination.
/// Returns the source over the destination.
/// </summary>
SrcAtop,

2
src/ImageSharp/PixelFormats/PixelBlenders/DefaultPixelBlenders.Generated.cs

@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders
/// Note there are faster functions for when the backdrop color is known
/// to be opaque
/// </remarks>
public static class DefaultPixelBlenders<TPixel>
internal static class DefaultPixelBlenders<TPixel>
where TPixel : struct, IPixel<TPixel>
{

2
src/ImageSharp/PixelFormats/PixelBlenders/DefaultPixelBlenders.Generated.tt

@ -32,7 +32,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders
/// Note there are faster functions for when the backdrop color is known
/// to be opaque
/// </remarks>
public static class DefaultPixelBlenders<TPixel>
internal static class DefaultPixelBlenders<TPixel>
where TPixel : struct, IPixel<TPixel>
{

8
src/ImageSharp/PixelFormats/PixelOperations{TPixel}.PixelBenders.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors and contributors.
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats.PixelBlenders;
@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// </summary>
/// <param name="options">the blending and composition to apply</param>
/// <returns>A <see cref="PixelBlender{TPixel}"/>.</returns>
internal PixelBlender<TPixel> GetPixelBlender(GraphicsOptions options)
public PixelBlender<TPixel> GetPixelBlender(GraphicsOptions options)
{
return this.GetPixelBlender(options.ColorBlendingMode, options.AlphaCompositionMode);
}
@ -27,7 +27,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <param name="colorMode">The color blending mode to apply</param>
/// <param name="alphaMode">The alpha composition mode to apply</param>
/// <returns>A <see cref="PixelBlender{TPixel}"/>.</returns>
internal virtual PixelBlender<TPixel> GetPixelBlender(PixelColorBlendingMode colorMode, PixelAlphaCompositionMode alphaMode)
public virtual PixelBlender<TPixel> GetPixelBlender(PixelColorBlendingMode colorMode, PixelAlphaCompositionMode alphaMode)
{
switch (alphaMode)
{
@ -214,4 +214,4 @@ namespace SixLabors.ImageSharp.PixelFormats
}
}
}
}
}

Loading…
Cancel
Save