title: How do I emboss text with a transparent background using SkiaSharp?
body: <p>I'm using SkiaSharp to draw text onto a canvas that I've already drawn a background image onto.</p>
  <p>It's working fine when just drawing regular text, but I want to add an embossed effect to the text.  To do this, I've tried using SKImageFilter.CreateDistantLitDiffuse, which gives the right effect, but the problem is that it fills the background with the light color (also influenced by the diffuse lighting constant).  This ends up obliterating my background.</p>
  <p>The image below shows the text with the embossed effect, but as you can see, it's background is not transparent.  Also, the text should be white, but it's colour has been changed by the filter.</p>
  <p><a href="https://i.stack.imgur.com/gDxJC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDxJC.png" alt="enter image description here" /></a></p>
  <p>The image filter I'm using is:</p>
  <pre><code>fontPaint.ImageFilter = SKImageFilter.CreateDistantLitDiffuse(
                                      new SKPoint3(2, 3, 4),
                                      SKColors.Transparent,
                                      -3,
                                      (float)0.2)
  
  canvas.DrawText(element.Value, coords, fontPaint);
  </code></pre>
  <p>I've seen examples of embossing by drawing the text twice with an offset, but this doesn't give the desired effect.</p>
  <p>Any ideas of how I can work-around this issue with the image filter filling in the background?</p>