Click here to Skip to main content
Click here to Skip to main content

WPF Color Picker Construction Kit

By , 26 Dec 2010
 
ColorPickerDemo.zip
ColorPicker.dll
ColorPickerControls.dll
ColorPickerDemo.exe
ColorPickerSource.zip
ColorPickerDemo
ColorPicker
ColorModels
CMY
CMYK
HSB
Lab
RGB
ExtensionMethods
Properties
Settings.settings
Resources
ColorPickerControls
Chips
Dialogs
Pickers
Properties
Settings.settings
ColorPickerDemo
ColorPickerDemo.ico
Properties
Settings.settings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace ColorPicker.ColorModels
{
   public abstract class ColorComponent
    {
        //The largest possible value for a component (value when slider at top)
        public abstract int MaxValue { get; }

        //The smallest possible value for a component (value when slider at bottom)
        public abstract int MinValue { get; }

       //The value of the component for a given color
        public abstract int Value(Color color);

       //The name of the color component (used to avoid reflection)
        public abstract string Name{ get; }
    }
}

By viewing downloads associated with this article you agree to the Terms of use 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)

About the Author

KenJohnson
Software Developer (Senior) Just arrived in UK
United Kingdom United Kingdom
Member
Written software for what seems like forever. I'm currenly infatuated with WPF. Hopefully my affections are returned.
 
MCPD 2.0 Framework
Enterprise Applications
Windows Applications
Web Applications
 
MCTS
Windows Presentation Foundation

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 26 Dec 2010
Article Copyright 2010 by KenJohnson
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid