Esempio n. 1
0
 public void addSVGGradientStop(SVGGradientStop pSVGGradientStop)
 {
     if (this.mSVGGradientStops == null)
     {
         this.mSVGGradientStops = new List <SVGGradientStop>();
     }
     this.mSVGGradientStops.Add(pSVGGradientStop);
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        void parseGradientStop(Attributes pAttributes)
        {
            SVGGradientStop svgGradientStop = this.mSVGPaint.parseGradientStop(this.getSVGPropertiesFromAttributes(pAttributes));

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