Rendering text to the WriteableBitmap

Nov 15, 2012 at 7:04 AM

I really like your library but i have a question,

How to render text to the writablebitmap?

Coordinator
Nov 15, 2012 at 8: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 12:31 PM
Edited Nov 16, 2012 at 12:32 PM

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

Coordinator
Nov 16, 2012 at 2: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 5:55 PM

There may be a workaround using DirectWrite here.