DrawString on WP7

I am trying to develop something on WP7 (XAML, not XNA), and I want to be able to draw text on the image, and then save this image with text on it. Is there a library or function that already exists that does this, or will I need to implement my own solution for drawing each character?

+2
source share
2 answers

I found a way to do this by adding a Textblock to the WriteableBitmap. This link gives you an example of how it can be achieved.

How to write a string on WriteableBitmap?

0
source

In WP7, there is no API for rendering text to a bitmap. WP7 API for bitmap processing WriteableBitmap, which gives you an array of pixels and nothing more!

codeplex WriteableBitmapEx, , .

, ...

<Grid>
  <Image Source="myImage.png"/>
  <TextBlock Text="Overlay text"/>
<Grid>

.

WriteableBitmap '' , . . .

+3

All Articles