Skip to main content
Home Forums Silverlight Design Designing with Silverlight Image editing app
3 replies. Latest Post by lschiedel on October 30, 2009.
(0)
maephisto
Member
2 points
8 Posts
10-17-2009 4:26 AM |
I have to do a silverlight app that would allow to open an image, display it and give the posibillity to draw on it arrows, rectangles and text. after that it should be able to save the edited image as .jpg file.
Is this project do-able in silverlight, or should i head for another technology, like flash ?
Thanks!
meidianto
605 points
130 Posts
10-17-2009 9:10 AM |
You can use Silverlight.
Use Canvas as the container of those objects.
The new WriteableBitmap in Silverlight 3 will allow you to take snapshot of a UIElement (in this case the Canvas). Then write some codes to enable the Save feature.
Good luck!
Amanda W...
All-Star
17241 points
1,466 Posts
10-21-2009 5:56 AM |
Hi,
You can try to use the InkPresenter control to draw on the image. the more you can see: http://msdn.microsoft.com/en-us/magazine/cc721604.aspx
And about how to save InkPresenter into image, you can try to refer this link: http://thedatafarm.com/blog/tablet/converting-silverlight-inkpresenter-images-to-a-png-file/
lschiedel
1 Posts
10-30-2009 5:29 PM |
I actually am working on an image editor in Silverlight 3 with all these features.
For the simple case of what you want, you can use WriteableBitmap (for the image), maybe layer some XAML controls over it or render right onto the pixels of the WriteableBitmap, then use a Jpeg encoder to convert the WriteableBitmap into a stream that you write to disk.
Len.