0

Hi I want to apply RoundedTransformation to dynamically created CachedImage in XamarinForms.

here is code for dynamic creation of CachedImage

var imgProd = new CachedImage { Source = temp.imgSource, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, Margin = 0, DownsampleHeight = vm.featureStackHeight, DownsampleToViewSize = true, Aspect = Aspect.Fill};
Neerav Shah
  • 713
  • 5
  • 18
  • 39

1 Answers1

1

Sure, just go:

imgProd.Transformations.Add(new CircleTransformation());
Gerald Versluis
  • 30,492
  • 6
  • 73
  • 100