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