CSPspEmu.Core.Types.OutputPixel.OperationPerComponent C# (CSharp) Method

OperationPerComponent() public static method

public static OperationPerComponent ( OutputPixel c1, OutputPixel c2, Func func ) : OutputPixel
c1 OutputPixel
c2 OutputPixel
func Func
return OutputPixel
        public static OutputPixel OperationPerComponent(OutputPixel c1, OutputPixel c2, Func<byte, byte, byte> func)
        {
            return new OutputPixel()
            {
                R = func(c1.R, c2.R),
                G = func(c1.G, c2.G),
                B = func(c1.B, c2.B),
                A = func(c1.A, c2.A),
            };
        }