Click here to Skip to main content
15,885,777 members
Articles / Web Development / ASP.NET

Create an image cropping control

Rate me:
Please Sign up or sign in to vote.
4.93/5 (38 votes)
8 Jul 2008CPOL6 min read 199K   11.2K   119  
Create a custom ASP.NET 3.5 control with WebResources, client-side JS, and HTTPhandlers.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Anders.Web.Controls.Model
{
    internal class CropData
    {
        public byte[] Buffer
        {
            get;
            set;
        }

        public int Width
        {
            get;
            set;
        }

        public int Height
        {
            get;
            set;
        }

        public CropAreaCordinates CropAreaCordinates
        {
            get;
            set;
        }
        
    }
}

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
Software Developer Agero
Sweden Sweden
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions