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 public enum PixelAlphaCompositionMode
{ {
/// <summary> /// <summary>
/// returns the destination over the source. /// Returns the destination over the source.
/// </summary> /// </summary>
SrcOver = 0, SrcOver = 0,
/// <summary> /// <summary>
/// returns the source colors. /// Returns the source colors.
/// </summary> /// </summary>
Src, Src,
/// <summary> /// <summary>
/// returns the source over the destination. /// Returns the source over the destination.
/// </summary> /// </summary>
SrcAtop, 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 /// Note there are faster functions for when the backdrop color is known
/// to be opaque /// to be opaque
/// </remarks> /// </remarks>
public static class DefaultPixelBlenders<TPixel> internal static class DefaultPixelBlenders<TPixel>
where TPixel : struct, IPixel<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 /// Note there are faster functions for when the backdrop color is known
/// to be opaque /// to be opaque
/// </remarks> /// </remarks>
public static class DefaultPixelBlenders<TPixel> internal static class DefaultPixelBlenders<TPixel>
where TPixel : struct, IPixel<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. // Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats.PixelBlenders; using SixLabors.ImageSharp.PixelFormats.PixelBlenders;
@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// </summary> /// </summary>
/// <param name="options">the blending and composition to apply</param> /// <param name="options">the blending and composition to apply</param>
/// <returns>A <see cref="PixelBlender{TPixel}"/>.</returns> /// <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); 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="colorMode">The color blending mode to apply</param>
/// <param name="alphaMode">The alpha composition mode to apply</param> /// <param name="alphaMode">The alpha composition mode to apply</param>
/// <returns>A <see cref="PixelBlender{TPixel}"/>.</returns> /// <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) switch (alphaMode)
{ {
@ -214,4 +214,4 @@ namespace SixLabors.ImageSharp.PixelFormats
} }
} }
} }
} }

Loading…
Cancel
Save