Rendering text to the WriteableBitmap

Nov 15, 2012 at 6:04 AM

I really like your library but i have a question,

How to render text to the writablebitmap?

Nov 15, 2012 at 7:27 PM

Depending on the platform you can create a TextBlock control in code and then call:

var wb = new WriteableBitmap(myTextBlock, null);

Nov 16, 2012 at 11:31 AM
Edited Nov 16, 2012 at 11:32 AM

I am using .Net Visual Basic and i don't have that constructor method available. Note that i'm developing a WinRT Metro App.

Nov 16, 2012 at 1:17 PM

Yes, it's not in WinRT. We're pretty much lost there since the rendering of UIElements is not supported and no workaround in sight until it's implemented by the platform.


- Rene

Nov 16, 2012 at 4:55 PM

There may be a workaround using DirectWrite here.