More filters
Posted by Sebastian | Filed under Common
Just a new translated post.There are some more filters in the image tools library. First a filter to change the brightness of the image and second to change the contrast. But they are not the fastest, perhaps a problem of the managed code, the filter is not very complex. Too change the brightness and contrast in runtime you need to use some multithreading tricks. An example can be found in the source control system at codeplex.
Furthermore I am looking for some ideas to make code samples which do not look so boring like the last one. Please send me a mail if you have an idea.
Image Uploader
Posted by admin | Filed under Common
This is my first post, which is not about ImageTools for Silverlight.
I want to present you another project. Its a silverlight application, which can be integrated in a website to upload files and edit images before uploading them. It has two views:
At the first view you can select files and start or stop the upload. When you have added an image which is not a gif, you press the edit button to resize or rotate the image or do whatever you want:

This nothing special, this is based on a component, which will be available with the tool. There exists a lot of controls for uploading files, for example from telerik, which make more or less the same. But because of the fact, that there is no builtin support for editing images in silverlight, the editor is really new:

The editor provides undo/redo functionalitiy. You can resize an image, rotate and flip it. You can change the contrast and brightness and apply different filters.
I hope to finish the project this year, but i will upload a first version the next day and hope, that some people will test it and report bugs. If somebody is interested, please feel free to send me a mail.
Flip and rotate images
Posted by Sebastian | Filed under ImageTools, Silverlight
Its time to present you another feature of image tools. Its is just a simple one and was very easy to implement but It can be very helpful. I made a small demo application, which shows how you can rotate around its center with fixed values of 90, 180 and 270 degrees and how to flip an image around its x and y axis.
It can be used for an image uploader for example and how you see, it is very fast.
Deflate (ZIP) with Silverlight
Posted by Sebastian | Filed under ImageTools, Silverlight
The ImageTools library for Silverlight supports loading and saving of PNG images.
PNG is based on the deflate algorithm with some preprocessing steps before the compression. This algorithm is not very easy to implement and the namespace System.IO.Compression ist not available for silverlight. So I had a look for a free implementation and I found the following libraries:
- zip.net: http://www.componentace.com/zlib_.NET.htm)
- #ziplib: http://www.icsharpcode.net/OpenSource/SharpZipLib/
Both libraries are open source and can be also used in commercial applications:
I recommend #ziplib, because the documentation is better, it follows the official coding guidelines for .NET and is much faster than zip.net.
Unfortunately, the binaries cannot be used in silverlight without making some changes. First a silverlight class library must be created with the original source and some lines of code must be changed. For all developer who do not want to do this, I have uploaded a compiled version for silverlight 2.0: sharpziplibsilverlight
Welcome
Posted by Sebastian | Filed under ImageTools, Silverlight
Welcome to my new blog!
I made the decision to translate all texts, which i have written up to now and write only posts in english now. I hope to get more readers, especially because this blog will be about silverlight, a framework from microsoft for developing rich internet applications with .net, which has a large english community. I will write about my projects and about common problems and solutions when working with silverlight.
But instead of talking about this boring stuff I want to present you my first project:
Silverlight is a very good framework, but it does not support image editing. I develope a small tool, which can be integrated in a web page to upload and edit images, which I will present in the next time and I really needed this features. So I decided to develope such a library. The result can be seen here:
The following features are supported at the moment:
- Saving and loading of image files in the following formats: BMP, JPEG, PNG
- Loading of GIF files
- Animated images with a custom control
- The following filters: Sepia, Grayscale, Inverter, Brightness, Contrast
- Image resizing with the nearest neighbor algorithm
This library is still some month old but Its not ready yet. Many important features are still missing and I will be happy about each developers which want to help finish this library.
Image Tools can be used for free, also in commercial applications. It is open source and can be downloaded at codeplex.com. Just visit the following link: http://codeplex.com/ImageTools. If you use this library and if you find some points you like or do not like or if you find some bugs, it would be fine to post it at codeplex or send me a mail.
