Making a font colour darker or lighter

Posted on 2014-08-20
Last Modified: 2014-08-20
I have a web process that adds words in a certain colour to different images and combines them into a single image.

I want to provide the user with a slider, to indicate making the font colour either lighter with values -1 to -5
or darker with values +1 to +5.

Is there a way to do this with .net c#

So the colour base is not changed, it just becomes lighter or darker shade of that colour
when provided with the values -1 to +5?

Thanks for your help.
Question by:stephenwilde
    LVL 35

    Accepted Solution

    Two options:

    built into the .net framework (ControlPaint Class):
    external code (free) from Rich Newman (HSL color class):

    Author Closing Comment

    Thanks used  for % of darker colur

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now