Skip to content

Commit b45ee03

Browse files
Expose pixelblenders. Touch #967
1 parent e484a40 commit b45ee03

7 files changed

Lines changed: 2367 additions & 195 deletions

File tree

‎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+
}

0 commit comments

Comments
 (0)