Skip to main content

Microsoft Silverlight

Answered Question Image editing appRSS Feed

(0)

maephisto
maephisto

Member

Member

2 points

8 Posts

Image editing app

 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
meidianto

Member

Member

605 points

130 Posts

Re: Image editing app

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!

Please "Mark as Answer" if this post answers your question.

Ferry Meidianto
www.meidianto.com

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Answered Question

Re: Image editing app

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/

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

lschiedel
lschiedel

Member

Member

2 points

1 Posts

Re: Image editing app

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities