This content is not currently approved and is visible here for review only.

Library tutorials & articles

Image Manipulation - Color

Introduction

As stated in my Inversion Article, color is represented -- both in the human eye and in the .NET world -- as a Red Green and Blue component.  Adjusting the color components in an image can fine tune a digital picture (small adjustments) or act as a complete color filter (large adjustments).  You may also think of it as "adjusting the shade of each color channel".

Once again, here is our unaltered Earth:



Here is the Earth with some minor color adjustments (Red increased and Blue decreased):

 

And finally, here is extreme adjustment (Red and Green decreased to 0):

 

The forumla to adjust color may be represented by:
New_Value = Old_Value + Adjustment_Amount

If New_Value < Value_Minimum
New_Value = Value_Minimum
If New_Value > Value_Maximum
New_Value = Value_Maximum


Earth Image shot by NASA, provided by FreeImages.co.uk
Adjustments performed by my image program, Colithium Graphics

Comments

  1. 08 Aug 2008 at 04:10

     It doesn't need to be computed, it should be passed in.  It's a byte so valid values are between 0 and 255.  If the second parameter is set to true, then 0 = 0% and 255 = 100%

  2. 07 Aug 2008 at 16:58

    Hi Nimpo,

    Your article is awesome. Only one thing I can not figure out. That is the threshold value.

    Can you suggest me how can i compute the threshold value for "Image Manipulation - Color - Black and White" ? Thanks.

    Regards,

    Shuvo.

  3. 11 Sep 2007 at 04:46

    I have just returned from an extended absence from this forum so I realize this is rather late.

    I apologize!  I was almost certain I had included those routines at the end of all of my articles (I guess it slipped my mind).  I will edit all affected articles to include the code.



  4. 09 Jul 2007 at 12:57

    Great stuff!
    Only one issue: I've never found this class/library you use: SupportFunctions ...
    Even after spending (wasting) hours over the internet.

    Can someone help me (us) ?
    Thank's, Fred








  5. 01 Jan 1999 at 00:00

    This thread is for discussions of Image Manipulation - Color.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related podcasts

  • Looking into the C# Crystal Ball with Charlie Calvert and Bill Wagner

    One of the most exciting announcements from PDC was the news about C# 4.0 and Visual Studio 2010. With all the excitement and discussion throughout the event about these new developer tools, we reached out to two experts in the fields. Charlie Calvert and Bill Wagner sat down with Keith and Woody...

Events coming up

  • Dec 6

    Developing AJAX Web Applications with Castle Monorail

    London, United Kingdom

    Monorail is the model-view-controller engine of the Castle Project, bringing many of the best ideas of Ruby on Rails to the .NET world. In this talk, David De Florinier and Gojko Adzic show how Monorail makes it easy to develop .NET based AJAX applications, and how to use the Castle Project to build Web 2.0 applications effectively. Come to this session if you are a .NET web developer. Everyone is welcome!