Image Processing in Silverlight 2

Is it possible to perform image processing in silverlight 2.0?

I want to take a picture, crop it, and then send the new cropped image to the server. I know that I can fake it by cropping the image, but this only affects the rendering of the image. I want to create a new image.

After further research, I answered my question. Answer: No. Since all apis are in System.Windows.Media.Imaging and that the namespace does not have corresponding classes in Silverlight

I am going to use fjcore. http://code.google.com/p/fjcore/

Thanks Jonas

+4
source share
3 answers

Well, actually you can do local image processing in Silverlight 2 ... But there are no built-in classes for you. But you can load any image into an array of bytes and start manipulating it or implement your own image encoder.

Joe Stegman got a lot of great information about “editable images” in Silverlight at http://blogs.msdn.com/jstegman/ . He does things like applying filters to images, creating mandlebots, and more.

This blog discusses the Silverilght JPEG encoder (FJCore), which you can use to resize and recompress photos: http://fluxcapacity.net/2008/07/14/fjcore-to-the-rescue/

Another tool is Fluxify, which allows you to resize and upload photos using Silverilght 2. Can be found at http://fluxtools.net/ p>

So yes, client-side image processing can be done in Silverilght 2. Happy hack!

+3
source

I know that this does not directly answer your question, but what if you do all the cropping on the client side to crop the image, and then send the original image and coordinates for clipping to the server. Then on the server side, which is likely to be more suitable for image manipulation (for example, PHP is very simple), you will actually crop the image and save the cropped version.

+2
source

Source: https://habr.com/ru/post/1276489/


All Articles