예제 #1
0
파일: SVGGradient.cs 프로젝트: znsoft/TUSA
 public void addSVGGradientStop(SVGGradientStop pSVGGradientStop)
 {
     if (this.mSVGGradientStops == null)
     {
         this.mSVGGradientStops = new List <SVGGradientStop>();
     }
     this.mSVGGradientStops.Add(pSVGGradientStop);
 }
예제 #2
0
파일: SVGGradient.cs 프로젝트: znsoft/TUSA
        private void buildSVGGradientStopsArrays()
        {
            this.mSVGGradientStopsBuilt = true;
            List <SVGGradientStop> svgGradientStops = this.mSVGGradientStops;

            int svgGradientStopCount = svgGradientStops.Count;

            this.mSVGGradientStopsColors    = new int[svgGradientStopCount];
            this.mSVGGradientStopsPositions = new float[svgGradientStopCount];

            for (int i = 0; i < svgGradientStopCount; i++)
            {
                SVGGradientStop svgGradientStop = svgGradientStops[i];
                this.mSVGGradientStopsColors[i]    = svgGradientStop.mColor;
                this.mSVGGradientStopsPositions[i] = svgGradientStop.mOffset;
            }
        }
예제 #3
0
파일: SVGHandler.cs 프로젝트: znsoft/xamsvg
        void parseGradientStop(Attributes pAttributes)
        {
            SVGGradientStop svgGradientStop = this.mSVGPaint.parseGradientStop(this.getSVGPropertiesFromAttributes(pAttributes));

            this.mCurrentSVGGradient.addSVGGradientStop(svgGradientStop);
        }
예제 #4
0
		public void addSVGGradientStop(SVGGradientStop pSVGGradientStop) {
			if(this.mSVGGradientStops == null) {
				this.mSVGGradientStops = new List<SVGGradientStop>();
			}
			this.mSVGGradientStops.Add(pSVGGradientStop);
		}