1

I am trying to save a WriteableBitmap to local in Silverlight using SaveFileDialog. A question similar to mine is asked Here.

And the answers show several opensource encoders and workarounds. They work fine.

But why silverlight doesn't support encoders for JPEG/PNG/BMP itself while .NET framework and WPF support all of them? Why should we apply for third party classes?

I thought for a whole night, but failed to figure out why. Since I am not allowed to use third party classes, I have to write an encoder myself.:(

Community
  • 1
  • 1
vicancy
  • 323
  • 3
  • 11
  • **Why** aren't you allowed to use 3rd-party libraries? That's a horrible restriction. That's like being told to build a computer without using 3rd-party hardware (eg, CPUs). – SLaks Oct 25 '11 at 13:33

1 Answers1

0

If you mean you aren't allowed to purchase third-party components, then use open source. Take a look at FJCore:

http://code.google.com/p/fjcore/

If you aren't allowed to use any classes you didn't write, you need to have a serious conversation with management.

Dave Swersky
  • 34,502
  • 9
  • 78
  • 118
  • Well, I'm just confused why silverlight doesn't support encoder while other products like wpf have this ability. And I wrote a class in my own to encode byte[] to .bmp.... – vicancy Oct 25 '11 at 14:56
  • I think it probably has to do with copyright on JPEG encoders. – Dave Swersky Oct 25 '11 at 14:57