Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: Is it possible to write text?

$
0
0
I'm trying to draw text in Silverlight. I blit an image and then I want to draw text on top of it
        TextBlock i = new TextBlock();
        i.Text = str;
        i.Foreground = new SolidColorBrush(color);
        wbmp.Render(i, new TranslateTransform() { X = x, Y = y });
But blitted background image is gone and text is drawn on completely black screen.
What do I do wrong? Thanks.

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>