protected static UIImage CreateColoredImage(UIColor color, UIImage mask) { var rect = new CGRect (CGPoint.Empty, mask.Size); UIGraphics.BeginImageContextWithOptions (mask.Size, false, mask.CurrentScale); CGContext context = UIGraphics.GetCurrentContext (); mask.DrawAsPatternInRect (rect); context.SetFillColor (color.CGColor); context.SetBlendMode (CGBlendMode.SourceAtop); context.FillRect (rect); UIImage result = UIGraphics.GetImageFromCurrentImageContext (); UIGraphics.EndImageContext (); return result; }