对动态字段使用FFImageloading RoundedTranformation。

时间:2018-08-28 11:05:14

标签: xamarin.forms ffimageloading

嗨,我想将RoundedTransformation应用于XamarinForms中动态创建的CachedImage。

这是用于动态创建CachedImage的代码

var imgProd = new CachedImage { Source = temp.imgSource, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, Margin = 0, DownsampleHeight = vm.featureStackHeight, DownsampleToViewSize = true, Aspect = Aspect.Fill};

1 个答案:

答案 0 :(得分:1)

好的,随便去吧

imgProd.Transformations.Add(new CircleTransformation());