I have an Image White and I would like to change the color for other is it possible?
Like the Image only has one color what I did was take off the image and then just set background color and It worked
ImagemFundo.Image = null;
ImagemFundo.BackgroundColor = UIColor.Black;
I can't recall where I found this code but it has worked well for me. I only use it to theme a small amount of images so I've never needed to look at its performance.
public static UIImage GetColoredImage(string imageName, UIColor color)
UIImage image = UIImage.FromBundle(imageName);
UIImage imageFromCurrentImageContext = null;
UIGraphics.BeginImageContextWithOptions(image.Size, false, UIScreen.MainScreen.Scale);
using (CGContext context = UIGraphics.GetCurrentContext())
RectangleF rect = new RectangleF(0f, 0f, (float) image.Size.Width, (float) image.Size.Height);
imageFromCurrentImageContext = UIGraphics.GetImageFromCurrentImageContext();
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies