I would like to darken an existing color for use in a gradient brush. Could somebody tell me how to do this please?
C#, .net 2.0, GDI+
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As a simple approach, you can just factor the RGB values:
(which should darken it; or, for example, * 1.25 to brighten it)