title: BitmapShader as a source for a Paint path
body: <p>Is it possible using non-openGL to achieve the effect shown in the graphic. Basically the stroke width is the same throughout the path as is the source bitmap. Before you're wondering why, Paint.setMaskFilter is quite slow. I'd rather prerender a blur in a bitmap and just paint with that. </p>
  
  <p>Code for what it's worth: </p>
  
  <pre><code>paint = new Paint();
  paint.setAntiAlias(true);
  paint.setDither(true);
  paint.setStrokeWidth(40f);
  paint.setStyle(Paint.Style.STROKE);
  paint.setPathEffect(new CornerPathEffect(8f));
  Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.shader_source);
  BitmapShader shader = new BitmapShader(bm, Shader.TileMode.REPEAT, Shader.TileMode.CLAMP);
  paint.setShader(shader);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/YzzdV.png" alt="enter image description here"></p>