From 8a59bf7f38fd121697c27b26fc747779c1f3933f Mon Sep 17 00:00:00 2001 From: Vicente Penades Date: Tue, 3 Jul 2018 18:53:13 +0200 Subject: [PATCH] fixed Clear composition, it essentially returns fully transparent --- .../PixelFormats/PixelBlenders/PorterDuffFunctions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs b/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs index 1a4fd15d3d..8b6fbcfb90 100644 --- a/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs +++ b/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs @@ -244,7 +244,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders private static Vector4 Clear(Vector4 backdrop, Vector4 source) { - return Vector4.Lerp(backdrop, Vector4.Zero, source.W); + return Vector4.Zero; } } } \ No newline at end of file