title: How to make glow effect around a bitmap?
body: <p>The following code is what I got so far. However, there are 2 issues:</p>
  
  <ol>
  <li><p>I want both inner and outer glow effects, which look similar to the Photoshop's blending options. But I only managed to make the outer glow, if I set <code>BlurMaskFilter.Blur.INNER</code> or other value, the whole image is blocked, instead of just edges.</p></li>
  <li><p>Despite I set "<strong>FF</strong>" as alpha value, the glow color is still very dark.</p>
  
  <pre><code>Bitmap alpha = origin.extractAlpha();
  BlurMaskFilter blurMaskFilter = new BlurMaskFilter(5, BlurMaskFilter.Blur.OUTER);
  
  Paint paint = new Paint();
  paint.setMaskFilter(blurMaskFilter);
  paint.setColor(0xffffffff);
  
  Canvas canvas = new Canvas(origin);
  canvas.drawBitmap(alpha, 0, 0, paint);
  
  return origin;
  </code></pre></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/IEl0v.png" alt="alt text"></p>