Skip to main content
Home Forums General Silverlight New Features in Silverlight 3 Urgent: a way to draw text annotation on image and save the drawing
3 replies. Latest Post by codeblock on June 7, 2009.
(0)
jo2fong
Member
2 points
12 Posts
06-05-2009 2:48 AM |
as topic.
codeblock
Contributor
4060 points
716 Posts
06-05-2009 2:57 AM |
Not so simple. You have to write the text and the image pixel by pixel using a WriteableBitmap. This because after using Render() on a WriteableBitmap it is locked due to DRM and you are unable to access pixels. So the only way is to write pixels and then read them.
HTH
06-05-2009 11:15 PM |
How could i write the text by pixel into the image?Could you give an example how can i achieve this? what is "DRM" actually?
06-07-2009 3:02 AM |
> How could i write the text by pixel into the image?
WriteableBitmap lt you access the pixes of a bitmap
http://community.irritatedvowel.com/blogs/pete_browns_blog/archive/2009/03/18/Silverlight-3-_1320_-The-Bitmap-API-_2F00_-WriteableBitmap.aspx
drawing text is not really simple. You have to simulate a font and by code write it pixel-by-pixel in the bitmap.
> what is "DRM" actually?
DRM stands for Digital Rights Management
hth