0

您好我想将 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};
4

1 回答 1

1

当然,去吧:

imgProd.Transformations.Add(new CircleTransformation());
于 2018-08-28T11:09:26.407 回答