Click here to Skip to main content
15,896,912 members
Articles / Programming Languages / C#

Thumbnails Generation

Rate me:
Please Sign up or sign in to vote.
4.64/5 (12 votes)
6 Mar 2009CPOL3 min read 74.6K   3.2K   61  
A generic way for generating thumbnails
using System;
using System.Collections.Generic;
using System.Text;

namespace HexMaster.Helper.Exceptions
{

    /// <summary>
    /// This exception will be thrown when the system could not calculate the destination size
    /// of the image that is about to be produced. This destination size depends on the ScalingOption
    /// and may depend on the original image.
    /// </summary>
    public class DestinationSizeNotFoundException : System.Exception
    {

        internal DestinationSizeNotFoundException()
            : base(csMessage)
        {
        }

        private const string csMessage = "Failed to determine the destination size of the image";
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect http://4dotnet.nl
Netherlands Netherlands
I'm developing software for over two decades. I'm working as a cloud solution architect and a team lead at 4DotNet in The Netherlands.

In my current position, I love to help customers with their journey to the cloud. I like to create highly performant software and to help team members to a higher level of software development.

My focus is on the Microsoft development stack, mainly C# and the Microsoft Azure Cloud. I also have a strong affinity with Angular. As a result of my contributions to the community, I received the Microsoft MVP Award for Microsoft Azure.

Comments and Discussions