title: Android BitmapShader change color
body: <p>I need a little help with the thing that I want to achieve. I'm using <code>BitmapShader</code> in my application to draw on a canvas. I'm setting a custom png file as shader to my paint variable and I want to change the color of shader. </p>
  
  <p>Here is an example code which I'm using :</p>
  
  <pre><code>    Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.particle_point);
      BitmapShader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
      mPaint.setShader(shader);
      ColorFilter filter = new LightingColorFilter(0xFFFFFFFF , 0x000000FF );
      mPaint.setColorFilter(filter);
  </code></pre>
  
  <p>I find that I can change it's color by using : </p>
  
  <p><code>ColorFilter filter = new LightingColorFilter(0xFFFFFFFF , 0x000000FF );</code></p>
  
  <p>, but I need to be able to change it's color by using a custom color picker,which returns color code similar to this : <code>-234423123</code>.</p>
  
  <p>So is there any way that I can use this color code and set it as color to my paint variable.</p>
  
  <p>Thanks in advance!</p>