You are writing an icon creator, yet; you don't understand how dithering works. May I ask why are you even writing this uber icon creator if you don't know what you're doing?.
Reading through color dithering WILL allow you to later on write dithering functions for your application, meaning; at the end if something goes wrong you'll know why, because you didn't copy&paste code from different places, put it together and claimed it your creation.
If you find it difficult to understand English papers regarding different types of dithering, I'm sure someone either translated or wrote them to your native language.
Just so you don't tag me as an asshole, heres a link to a CS project with source, in this project you'll find more than enough dithering implementations to work with:
http://www.codeproject.com/KB/GDI-plus/ ... g_Lab.aspx
Programming is not about copy&pasting, it's about learning and creating. So I would also suggest that you read a paper on dithering, or at least fully read and understand what you are coding / porting. If you don't understand the code, don't bother to use it - that's my general rule and it works at the end (because if something goes wrong you'll know what to do in order to solve the problem).
You may agree or not it's just my point of view on the matter.
If you run into problems while porting the code, feel free to post your current code and someone will help you out.