Sunday, February 3, 2013
Adventures with Images in Mono
So, the last little while I've been working a lot with images in Mono. Mono is a cross platform version of C#. The applications I'm working on need to run on both Mac and Windows. My first thought was to just use the System.Bitmap class. It was built into .Net and I've used it before in windows only applications. I wrote a fair bit of code using the bitmap class, did a few tests and everything seemed to be working great. Then I booted my machine to OSX. All of the images were now coming out with pre multiplied alpha. The difference was tracked down to how the bitmap was being loaded. The png files were getting the alpha pre multiplied on load. The quick fix for this was to unpremultiply the alpha on load. The bigger fix was to find cross platform imaging library that worked well in Mono. After trying a few, the built in Gdk libraries and imagemagick. I stumbled upon FreeImage. Using this library was a breeze. The dll for windows can be downloaded from their site, and the Mac version can be installed through macports. There is also a c# binding project on their site. Overall it is a really nice library to use. I have not done benchmarks, but it seems very fast, it is full featured, and it's really easy to use. You should defenatily check it out if your looking for a nice imaging library.
Friday, February 1, 2013
First post!!
My first post in this blog. Baby steps. I've been meaning to start blogging about the projects that I have going in my spare time for along time. Thing just always seem to get in the way and I keep putting it off. Well, no more. I call this my new years resolution ( even though it's February ). I'm currently working on some procedural models in Houdini. I'm going to get some videos and samples to post in coming days. In the mean time, check out Houdini here. It's a great application for working proceduraly and there is a free non commercial version and lots of training on their site.I'm not only going to blog about Houdini. I also use Maya and will be posting about rigs and scripts that i do. I'm very excited to dive into the new .Net API that was just released in the extensions.Anyways, I'm off to do some modeling.
Subscribe to:
Comments (Atom)