|
|
|
@ -45,7 +45,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplySrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplySrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -117,7 +117,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -153,7 +153,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -189,7 +189,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -225,7 +225,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -261,7 +261,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -297,7 +297,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlaySrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlaySrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -333,7 +333,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightSrc(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -369,7 +369,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -405,7 +405,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplySrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplySrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -441,7 +441,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -477,7 +477,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -513,7 +513,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -549,7 +549,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -585,7 +585,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -621,7 +621,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlaySrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlaySrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -657,7 +657,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightSrcAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -693,7 +693,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -729,7 +729,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplySrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplySrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -765,7 +765,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -801,7 +801,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -837,7 +837,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -873,7 +873,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -909,7 +909,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -945,7 +945,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlaySrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlaySrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -981,7 +981,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightSrcOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1017,7 +1017,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1053,7 +1053,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplySrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplySrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1089,7 +1089,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1125,7 +1125,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1161,7 +1161,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1197,7 +1197,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1233,7 +1233,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1269,7 +1269,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlaySrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlaySrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1305,7 +1305,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightSrcIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1341,7 +1341,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1377,7 +1377,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplySrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplySrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1413,7 +1413,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1449,7 +1449,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1485,7 +1485,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1521,7 +1521,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1557,7 +1557,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1593,7 +1593,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlaySrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlaySrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1629,7 +1629,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightSrcOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1665,7 +1665,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1701,7 +1701,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1737,7 +1737,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1773,7 +1773,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1809,7 +1809,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1845,7 +1845,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1881,7 +1881,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1917,7 +1917,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1953,7 +1953,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightDest(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1989,7 +1989,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2025,7 +2025,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2061,7 +2061,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2097,7 +2097,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2133,7 +2133,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2169,7 +2169,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2205,7 +2205,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2241,7 +2241,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2277,7 +2277,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightDestAtop(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2313,7 +2313,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2349,7 +2349,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2385,7 +2385,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2421,7 +2421,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2457,7 +2457,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2493,7 +2493,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2529,7 +2529,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2565,7 +2565,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2601,7 +2601,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightDestOver(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2637,7 +2637,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2673,7 +2673,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2709,7 +2709,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2745,7 +2745,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2781,7 +2781,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2817,7 +2817,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2853,7 +2853,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2889,7 +2889,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2925,7 +2925,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightDestIn(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2961,7 +2961,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -2997,7 +2997,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3033,7 +3033,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3069,7 +3069,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3105,7 +3105,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3141,7 +3141,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3177,7 +3177,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3213,7 +3213,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3249,7 +3249,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightDestOut(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3285,7 +3285,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3321,7 +3321,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3357,7 +3357,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3393,7 +3393,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3429,7 +3429,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3465,7 +3465,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3501,7 +3501,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3537,7 +3537,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3573,7 +3573,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightClear(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3609,7 +3609,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.NormalXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.NormalXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3645,7 +3645,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.MultiplyXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.MultiplyXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3681,7 +3681,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.AddXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.AddXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3717,7 +3717,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.SubtractXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.SubtractXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3753,7 +3753,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.ScreenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.ScreenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3789,7 +3789,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.DarkenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.DarkenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3825,7 +3825,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.LightenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.LightenXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3861,7 +3861,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.OverlayXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.OverlayXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
@ -3897,7 +3897,7 @@ namespace SixLabors.ImageSharp.PixelFormats.PixelBlenders |
|
|
|
public override TPixel Blend(TPixel background, TPixel source, float amount) |
|
|
|
{ |
|
|
|
TPixel dest = default; |
|
|
|
dest.PackFromScaledVector4(PorterDuffFunctions.HardLightXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
dest.FromScaledVector4(PorterDuffFunctions.HardLightXor(background.ToScaledVector4(), source.ToScaledVector4(), amount.Clamp(0, 1))); |
|
|
|
return dest; |
|
|
|
} |
|
|
|
|
|
|
|
|