예제 #1
0
        SVGFilter getFilter(string pSVGFilterID)
        {
            SVGFilter svgFilter = this.mSVGFilterMap[pSVGFilterID];

            if (svgFilter == null)
            {
                return(null);                // TODO Better a SVGParseException here?
            }
            else
            {
                svgFilter.ensureHrefResolved(this.mSVGFilterMap);
                return(svgFilter);
            }
        }
예제 #2
0
파일: SVGFilter.cs 프로젝트: znsoft/TUSA
        private void resolveHref(Dictionary <string, SVGFilter> pSVGFilterMap)
        {
            SVGFilter parent = pSVGFilterMap[this.mHref];

            if (parent == null)
            {
                throw new SVGParseException("Could not resolve href: '" + this.mHref + "' of SVGGradient: '" + this.mID + "'.");
            }
            else
            {
                parent.ensureHrefResolved(pSVGFilterMap);
                this.mParent = parent;
                this.mSVGAttributes.setParentSVGAttributes(this.mParent.mSVGAttributes);
            }
        }