在Apple文档中,UIImage class has method withTintColor。
但是,等效于Xamarin.iOS的UIImage class没有此方法。
有没有办法做到这一点?
(我不认为设置UIImageView.TintColor
的另一种方法对我有帮助,因为我需要以编程方式将着色的图像绘制到另一个位图中。]
Xamarin将withTintColor
方法重命名为ApplyTintColor
:
var tintedImage = srcImage.ApplyTintColor(myUIColor);