Pinta.ImageManipulation.UnaryPixelOperations.DesaturateOp.Apply C# (CSharp) Method

Apply() public method

public Apply ( ColorBgra src, ColorBgra dst, int length ) : void
src ColorBgra
dst ColorBgra
length int
return void
		public unsafe override void Apply (ColorBgra* src, ColorBgra* dst, int length)
		{
			while (length > 0) {
				var i = src->GetIntensityByte ();

				dst->B = i;
				dst->G = i;
				dst->R = i;
				dst->A = src->A;

				++dst;
				++src;
				--length;
			}
		}
	}

Same methods

DesaturateOp::Apply ( ColorBgra color ) : ColorBgra
DesaturateOp::Apply ( ColorBgra ptr, int length ) : void
DesaturateOp