Skip to content

Commit 2925668

Browse files
Merge pull request #1028 from SixLabors/js/expose-pixel-blenders
Expose pixelblenders. #967
2 parents e484a40 + e6d7af0 commit 2925668

9 files changed

+2441
-273
lines changed

src/ImageSharp/Color/Color.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private Color(byte r, byte g, byte b)
105105
[MethodImpl(InliningOptions.ShortMethod)]
106106
public static Color FromHex(string hex)
107107
{
108-
Rgba32 rgba = Rgba32.FromHex(hex);
108+
var rgba = Rgba32.FromHex(hex);
109109

110110
return new Color(rgba);
111111
}
@@ -178,7 +178,7 @@ internal static void ToPixel<TPixel>(
178178
where TPixel : struct, IPixel<TPixel>
179179
{
180180
ReadOnlySpan<Rgba64> rgba64Span = MemoryMarshal.Cast<Color, Rgba64>(source);
181-
PixelOperations<TPixel>.Instance.FromRgba64(Configuration.Default, rgba64Span, destination);
181+
PixelOperations<TPixel>.Instance.FromRgba64(configuration, rgba64Span, destination);
182182
}
183183
}
184-
}
184+
}

src/ImageSharp/PixelFormats/PixelAlphaCompositionMode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ namespace SixLabors.ImageSharp.PixelFormats
99
public enum PixelAlphaCompositionMode
1010
{
1111
/// <summary>
12-
/// returns the destination over the source.
12+
/// Returns the destination over the source.
1313
/// </summary>
1414
SrcOver = 0,
1515

1616
/// <summary>
17-
/// returns the source colors.
17+
/// Returns the source colors.
1818
/// </summary>
1919
Src,
2020

2121
/// <summary>
22-
/// returns the source over the destination.
22+
/// Returns the source over the destination.
2323
/// </summary>
2424
SrcAtop,
2525

0 commit comments

Comments
 (0)