If you need to create a thumbnial on the fly of a given image, it is quite easy to do in C# as the Image object include a GetThumbnailImage method.
Anyway, there is another method that will generate cleaner thumbnails, for any types of images.
[Plus]