Ejemplo n.º 1
0
        public static MaskDrawable?GetSvgElementMask(SvgElement svgElement, SKRect skBounds, HashSet <Uri> uris, CompositeDisposable disposable)
        {
            var svgMaskRef = svgElement.GetUriElementReference <SvgMask>("mask", uris);

            if (svgMaskRef == null || svgMaskRef.Children == null)
            {
                return(null);
            }
            var maskDrawable = new MaskDrawable(svgMaskRef, skBounds, null, null, Attributes.None);

            disposable.Add(maskDrawable);
            return(maskDrawable);
        }