This project is read-only.

Gets The Content Of A RichTextBlock And Convert It To Bitmap

Mar 25, 2013 at 1:44 PM
Edited Mar 25, 2013 at 6:33 PM
Hi guys, I'm trying to get the content of the RichTextBlock and export it to a WriteableBitmap then to a .PNG picture. I've found some examples but they are deprecated. Can you show me an example?

Thanks in advance.


I'm trying to do something like this, but I got an error from VS2012.
 string text = "Draw something";

 WriteableBitmap tBmp = await new WriteableBitmap(1, 1).DrawString(texto, 150, 150, "Verdana", 30, color);
Error 2 'Windows.UI.Xaml.Media.Imaging.WriteableBitmap' does not contain a definition for 'DrawString'.