示例#1
0
		static Shader MakeSweep (RectF r, GradData data, Shader.TileMode tile)
		{
			return new SweepGradient (
				r.centerX (), r.centerX (), data.Colors, data.Pos);
		}
示例#2
0
		static Shader MakeRadial (RectF r, GradData data, Shader.TileMode tile)
		{
			return new RadialGradient (
				r.centerX (), r.centerY (), r.centerX (), data.Colors, data.Pos, tile);
		}
示例#3
0
		static Shader MakeLinear (RectF r, GradData data, Shader.TileMode tile)
		{
			return new LinearGradient (
				r.left, r.top, r.right, r.bottom, data.Colors, data.Pos, tile);
		}
示例#4
0
 static Shader MakeSweep(RectF r, GradData data, Shader.TileMode tile)
 {
     return(new SweepGradient(
                r.centerX(), r.centerX(), data.Colors, data.Pos));
 }
示例#5
0
 static Shader MakeRadial(RectF r, GradData data, Shader.TileMode tile)
 {
     return(new RadialGradient(
                r.centerX(), r.centerY(), r.centerX(), data.Colors, data.Pos, tile));
 }
示例#6
0
 static Shader MakeLinear(RectF r, GradData data, Shader.TileMode tile)
 {
     return(new LinearGradient(
                r.left, r.top, r.right, r.bottom, data.Colors, data.Pos, tile));
 }