CIImage BlendWithMask () { var blend_with_mask = new CIBlendWithMask () { Image = heron, BackgroundImage = clouds, Mask = RandomGenerator () }; return blend_with_mask.OutputImage; }
/// <summary> /// Uses a grayscale mask to blends its foreground and background images. /// </summary> /// <returns>The altered image.</returns> CIImage BlendWithMask () { var blend_with_mask = new CIBlendWithMask () { BackgroundImage = clouds, Image = flower, Mask = xamarin }; return blend_with_mask.OutputImage; }