title: Paint : How to draw arc using gradient image or Bitmap image
body: <p>i am able to draw arc using Paint and passing some gradient color to it, my problem is that i need draw the arc using a gradient image.Is it possible to draw arc using an image?</p>
  
  <p>If so how to do it?</p>
  
  <p>this is my current code:</p>
  
  <pre><code>Paint nPaint = new Paint();
          nPaint.setAntiAlias(true);
          nPaint.setDither(true);
          nPaint.setStrokeJoin(Paint.Join.ROUND);
          nPaint.setStrokeCap(Paint.Cap.ROUND);
          int gradientStart = getResources().getInteger(R.integer.gradient_start);
          int gradientend = getResources().getInteger(R.integer.gradient_end);
  
          nPaint.setShader(new RadialGradient(getWidth() / 2, getHeight() / 2, getWidth() / 2,
              gradientStart, gradientend, Shader.TileMode.CLAMP));
  </code></pre>