我有一个UI设计,如下图所示。我正在使用FFImageLoading插件和角变换,但我不能从图像的顶部到底部剪切图像。我该怎么做呢?
我正在尝试跟踪代码,但它不工作。
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 CornersTransformation { CornersTransformType = CornerTransformType.TopLeftCut | ,TopLeftCornerSize=50 });

发布于 2019-02-20 04:21:54
以下内容适用于xaml:
<ffimageloading:CachedImage Source ="{Binding ImageFile}"
<ffimageloading:CachedImage.Transformations>
<fftransformations:CornersTransformation
CornersTransformType="TopLeftCut"
TopLeftCornerSize="50" />
</ffimageloading:CachedImage.Transformations>
</ffimageloading:CachedImage>https://stackoverflow.com/questions/52071158
复制相似问题