Xamarin.forms 使用FFIMAGED加载动态场的圆形传输信息。

Xamarin.forms 使用FFIMAGED加载动态场的圆形传输信息。,xamarin.forms,ffimageloading,Xamarin.forms,Ffimageloading,您好,我想将RoundedTransformation应用于XamarinForms中动态创建的CachedImage 下面是动态创建CachedImage的代码 var imgProd = new CachedImage { Source = temp.imgSource, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, Margin = 0, Dow

您好,我想将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};
当然可以,走吧:

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