C# Interop Wrapper for WIC (Windows Imaging Component Wrapper) using COM
$100-500 USD
Cerrado
Publicado hace más de 15 años
$100-500 USD
Pagado a la entrega
We're looking for a C# library targeting .NET 3.5 SP1 to wrap the Windows Imaging Component (WIC).
The library should expose a single public class, WicImage, with 4 functions (Rotate, Resize, Crop, and ToJpeg) having the the following signatures:
public class WicImage(Stream stream)
- WicImage Rotate(int degree) [0-360, in 90 degree incriments]
- WicImage Resize(int targetWidth, int targetHeight)
- WicImage Crop(Int32Rect sourceRectangle)
- void ToJpeg(int quality, Stream outputStream)
The WicImage should be constructable from a stream of bytes with a corresponding WIC decoder (e.g. BMP, TIFF, JPEG, PNG, or ICN).
Each of the functions (with the exception of ToJpeg) should return a new WicImage allowing calls to be chained.
For example:
using(WicImage image = new WicImage(stream)) {
[login to view URL](360).Crop(new Int32Rect() { Width = 100, Height = 100, X = 0, Y = 0}).ToJpeg(quality, outputStream);
}
The component should be scable to hundreds of calls per second without memory leaks.
Let me know if you have any questions or suggestions.
Cheers,
Jason